From 54d8c45b52e1506e21ee8bb2825f66b978cbd239 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Sun, 2 Apr 2023 11:54:34 -0700 Subject: [PATCH] Don't interrupt players --- dGame/dBehaviors/InterruptBehavior.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dGame/dBehaviors/InterruptBehavior.cpp b/dGame/dBehaviors/InterruptBehavior.cpp index 9035c092..96cba1b1 100644 --- a/dGame/dBehaviors/InterruptBehavior.cpp +++ b/dGame/dBehaviors/InterruptBehavior.cpp @@ -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(); 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(); if (skillComponent == nullptr) return;