2022-08-25 20:51:22 +00:00
|
|
|
#include "GfMaelstromGeyser.h"
|
|
|
|
#include "SkillComponent.h"
|
|
|
|
|
|
|
|
void GfMaelstromGeyser::OnStartup(Entity* self) {
|
|
|
|
self->AddTimer(m_StartSkillTimerName, m_StartSkillTimerTime);
|
|
|
|
self->AddTimer(m_KillSelfTimerName, m_KillSelfTimerTime);
|
|
|
|
}
|
|
|
|
|
|
|
|
void GfMaelstromGeyser::OnTimerDone(Entity* self, std::string timerName) {
|
|
|
|
if (timerName == m_StartSkillTimerName) {
|
2023-06-07 07:23:50 +00:00
|
|
|
auto skillComponent = self->GetComponent<SkillComponent>();
|
2022-08-25 20:51:22 +00:00
|
|
|
skillComponent->CalculateBehavior(m_SkillID, m_BehaviorID, LWOOBJID_EMPTY, true);
|
|
|
|
}
|
|
|
|
if (timerName == m_KillSelfTimerName) {
|
|
|
|
self->Smash(LWOOBJID_EMPTY, eKillType::SILENT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|