From 5f1fadf71ca6ff2985766c937bd33d8a1fbd02b2 Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Tue, 4 Jul 2017 11:21:22 +0300 Subject: [PATCH] Fixed https://bugs.vcmi.eu/view.php?id=2706 --- lib/battle/CBattleInfoEssentials.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/battle/CBattleInfoEssentials.cpp b/lib/battle/CBattleInfoEssentials.cpp index 3a051d7d0..44befb406 100644 --- a/lib/battle/CBattleInfoEssentials.cpp +++ b/lib/battle/CBattleInfoEssentials.cpp @@ -358,6 +358,8 @@ bool CBattleInfoEssentials::battleMatchOwner(const CStack * attacker, const CSta RETURN_IF_NOT_BATTLE(false); if(boost::logic::indeterminate(positivness)) return true; + else if(attacker == defender) + return positivness; else if(defender->owner != battleGetOwner(defender)) return true; //mind controlled unit is attackable for both sides else