Parrot crash script to become a sneaky ninja and steal the pirate's booty (#752)

This commit is contained in:
Aaron Kimbrell
2022-08-26 22:58:41 -05:00
committed by GitHub
parent 500b7885e2
commit b70e7334e8
4 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#include "GfParrotCrash.h"
#include "SkillComponent.h"
#include "Entity.h"
#include "dLogger.h"
void GfParrotCrash::OnFireEventServerSide(Entity* self, Entity* sender, std::string args, int32_t param1, int32_t param2, int32_t param3) {
auto* skillComponent = self->GetComponent<SkillComponent>();
if (args == "Slow") {
skillComponent->CalculateBehavior(m_SlowSkillID, m_SlowBehaviorID, sender->GetObjectID());
} else if (args == "Unslow") {
skillComponent->CalculateBehavior(m_UnslowSkillID, m_UnslowBehaviorID, sender->GetObjectID());
}
}