fixed ^ operator for "opponent" flag

This commit is contained in:
jarod42 2004-05-22 16:54:48 +00:00
parent 2c71c3679f
commit 5f5b2504a4

View file

@ -782,7 +782,7 @@ local int PassCondition(const Unit* caster, const SpellType* spell, const Unit*
}
if (condition->Opponent != CONDITION_TRUE) {
if ((condition->Opponent == CONDITION_ONLY) ^
IsEnemy(caster->Player, target)) {
(IsEnemy(caster->Player, target) && 1)) {
return 0;
}
}