DarkflameServer/dScripts/02_server/Map/AG/AgBugsprayer.cpp
Aaron Kimbrell 15954413ae
chore: rename rebuild to quickbuild (#1364)
* rename rebuild to quickbuild

* fix includes
2023-12-28 22:24:30 -06:00

18 lines
491 B
C++

#include "AgBugsprayer.h"
#include "SkillComponent.h"
void AgBugsprayer::OnQuickBuildComplete(Entity* self, Entity* target) {
self->AddTimer("castSkill", 1);
self->SetOwnerOverride(target->GetObjectID());
}
void AgBugsprayer::OnTimerDone(Entity* self, std::string timerName) {
if (timerName == "castSkill") {
auto* skillComponent = self->GetComponent<SkillComponent>();
if (skillComponent == nullptr) return;
skillComponent->CalculateBehavior(1435, 36581, LWOOBJID_EMPTY);
}
}