fixed ^ operator for "opponent" flag
This commit is contained in:
parent
2c71c3679f
commit
5f5b2504a4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue