2021-12-05 17:54:36 +00:00
|
|
|
#include "BurningTile.h"
|
|
|
|
#include "SkillComponent.h"
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
void BurningTile::OnFireEventServerSide(Entity* self, Entity* sender, std::string args, int32_t param1, int32_t param2, int32_t param3) {
|
|
|
|
if (args == "PlayerEntered") {
|
|
|
|
auto* skillComponent = sender->GetComponent<SkillComponent>();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
if (skillComponent == nullptr) {
|
|
|
|
return;
|
|
|
|
}
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
skillComponent->CalculateBehavior(726, 11723, sender->GetObjectID(), true);
|
|
|
|
}
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|