Browse Source

Fixed https://bugs.vcmi.eu/view.php?id=2706

AlexVinS 8 years ago
parent
commit
5f1fadf71c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/battle/CBattleInfoEssentials.cpp

+ 2 - 0
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