Update InterruptBehavior.cpp

This commit is contained in:
David Markowitz 2023-04-03 09:37:29 -07:00 committed by GitHub
parent b8251c06b8
commit 426a84daf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,8 +46,6 @@ void InterruptBehavior::Handle(BehaviorContext* context, RakNet::BitStream* bitS
if (target == nullptr) return; if (target == nullptr) return;
if (target->GetLOT() == 1) return;
auto* skillComponent = target->GetComponent<SkillComponent>(); auto* skillComponent = target->GetComponent<SkillComponent>();
if (skillComponent == nullptr) return; if (skillComponent == nullptr) return;
@ -73,8 +71,6 @@ void InterruptBehavior::Calculate(BehaviorContext* context, RakNet::BitStream* b
if (target == nullptr) return; if (target == nullptr) return;
if (target->GetLOT() == 1) return;
auto* skillComponent = target->GetComponent<SkillComponent>(); auto* skillComponent = target->GetComponent<SkillComponent>();
if (skillComponent == nullptr) return; if (skillComponent == nullptr) return;