Script for when archway rebuild is done (#739)

This commit is contained in:
Aaron Kimbrell
2022-08-18 15:33:32 -05:00
committed by GitHub
parent e4a15a0f2e
commit f8c1e2fb52
4 changed files with 23 additions and 0 deletions

8
dScripts/GfArchway.cpp Normal file
View 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);
}