#include "RaceFireballs.h" #include "SkillComponent.h" void RaceFireballs::OnStartup(Entity* self) { self->AddTimer("fire", GeneralUtils::GenerateRandomNumber(3.0f, 10.0f)); } void RaceFireballs::OnTimerDone(Entity* self, std::string timerName) { if (timerName == "fire") { auto* skillComponent = self->GetComponent(); if (skillComponent) skillComponent->CastSkill(894); self->AddTimer("fire", GeneralUtils::GenerateRandomNumber(3.0f, 10.0f)); } }