mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-09 17:58:20 +00:00
Added redundancy for smashing buff station
This commit is contained in:
parent
6fc0683ce9
commit
24f8ea21db
@ -7,5 +7,13 @@ void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) {
|
||||
|
||||
if (skillComponent == nullptr) return;
|
||||
|
||||
skillComponent->CalculateBehavior(skillIdForBuffStation, behaviorIdForBuffStation, self->GetObjectID());
|
||||
skillComponent->CalculateBehavior(201, 1784, self->GetObjectID());
|
||||
|
||||
self->AddTimer("DestroyAfter10Seconds", 10.0f);
|
||||
}
|
||||
|
||||
void AgSurvivalBuffStation::OnTimerDone(Entity* self, std::string timerName) {
|
||||
if (timerName == "DestroyAfter10Seconds") {
|
||||
self->Smash();
|
||||
}
|
||||
}
|
@ -11,6 +11,7 @@ public:
|
||||
* @param target The target of the self that called this script.
|
||||
*/
|
||||
void OnRebuildComplete(Entity* self, Entity* target) override;
|
||||
void OnTimerDone(Entity* self, std::string timerName) override;
|
||||
private:
|
||||
/**
|
||||
* Skill ID for the buff station.
|
||||
|
Loading…
Reference in New Issue
Block a user