DarkflameServer/dScripts/BurningTile.cpp

15 lines
424 B
C++
Raw Normal View History

#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>();
2022-07-28 13:39:57 +00:00
if (skillComponent == nullptr) {
return;
}
2022-07-28 13:39:57 +00:00
skillComponent->CalculateBehavior(726, 11723, sender->GetObjectID(), true);
}
}