From 0da55891ee23cc8db564de030f0d138b937b04c8 Mon Sep 17 00:00:00 2001 From: killerwife Date: Sat, 31 Oct 2020 20:14:48 +0100 Subject: [PATCH] Threat: Fix 3 year old bug with suppression during suppression due to wrong orientation of check --- src/game/Combat/HostileRefManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Combat/HostileRefManager.cpp b/src/game/Combat/HostileRefManager.cpp index a2a148ad7d4..1a32e8f628d 100644 --- a/src/game/Combat/HostileRefManager.cpp +++ b/src/game/Combat/HostileRefManager.cpp @@ -239,7 +239,7 @@ void HostileRefManager::HandleSuppressed(bool apply, bool immunity) HostileReference& ref = static_cast(data); Unit* source = ref.getSource()->getOwner(); Unit* target = ref.getTarget(); - if (!target->IsSuppressedTarget(source)) + if (!source->IsSuppressedTarget(target)) { ref.SetSuppressabilityToggle(); continue;