1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
This commit is contained in:
AlexVinS 2017-07-04 11:21:22 +03:00
parent e024c4f7b1
commit 5f1fadf71c

View File

@ -358,6 +358,8 @@ bool CBattleInfoEssentials::battleMatchOwner(const CStack * attacker, const CSta
RETURN_IF_NOT_BATTLE(false); RETURN_IF_NOT_BATTLE(false);
if(boost::logic::indeterminate(positivness)) if(boost::logic::indeterminate(positivness))
return true; return true;
else if(attacker == defender)
return positivness;
else if(defender->owner != battleGetOwner(defender)) else if(defender->owner != battleGetOwner(defender))
return true; //mind controlled unit is attackable for both sides return true; //mind controlled unit is attackable for both sides
else else