[8569] replace ^ by != introduced in 8552

for clarification, also ^ could create unexpeced
results if our boolean TRUE is not equal to 1

thx to vladimir for pointing it out + explanation
This commit is contained in:
balrok 2009-09-30 14:34:47 +02:00
parent 09c50ab921
commit 9204ed5eb5
2 changed files with 3 additions and 2 deletions

View file

@ -1210,7 +1210,8 @@ bool Spell::IsAliveUnitPresentInTargetList()
{
Unit *unit = m_caster->GetGUID() == ihit->targetGUID ? m_caster : ObjectAccessor::GetUnit(*m_caster, ihit->targetGUID);
if (unit && (unit->isAlive() ^ IsDeathOnlySpell(m_spellInfo)))
// either unit is alive and normal spell, or unit dead and deathonly-spell
if (unit && (unit->isAlive() != IsDeathOnlySpell(m_spellInfo)))
needAliveTargetMask &= ~ihit->effectMask; // remove from need alive mask effect that have alive target
}
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8568"
#define REVISION_NR "8569"
#endif // __REVISION_NR_H__