mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-19 22:08:08 +00:00
Script for when archway rebuild is done (#739)
This commit is contained in:
8
dScripts/GfArchway.cpp
Normal file
8
dScripts/GfArchway.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "GfArchway.h"
|
||||
#include "Entity.h"
|
||||
#include "SkillComponent.h"
|
||||
|
||||
void GfArchway::OnRebuildComplete(Entity* self, Entity* target) {
|
||||
auto* skillComponent = target->GetComponent<SkillComponent>();
|
||||
if (skillComponent) skillComponent->CalculateBehavior(SHIELDING_SKILL, SHIELDING_BEHAVIOR, target->GetObjectID(), true);
|
||||
}
|
Reference in New Issue
Block a user