mirror of
https://github.com/Squareville/TestEventServer.git
synced 2026-05-05 02:28:20 -05:00
Added redundancy for smashing buff station
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user