Don't interrupt players

This commit is contained in:
David Markowitz 2023-04-02 11:54:34 -07:00
parent 152c8ea712
commit 54d8c45b52

View File

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