Added redundancy for smashing buff station

This commit is contained in:
EmosewaMC
2022-01-20 03:48:43 -08:00
parent 6fc0683ce9
commit 24f8ea21db
2 changed files with 10 additions and 1 deletions
+9 -1
View File
@@ -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();
}
}