mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[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:
parent
09c50ab921
commit
9204ed5eb5
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8568"
|
||||
#define REVISION_NR "8569"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue