mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
This commit is contained in:
parent
e024c4f7b1
commit
5f1fadf71c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user