Core/Spell: in case of immunity, check all effects to choose correct procFlags, as none has technically hit
This commit is contained in:
1 parent
e80602f048
commit
e778c4c628
1 file changed
+2
-1
@@ -2393,7 +2393,8 @@ void Spell::DoAllEffectOnTarget(TargetInfo* target)
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
{
|
||||
if (!(target->effectMask & (1 << i)))
|
||||
// in case of immunity, check all effects to choose correct procFlags, as none has technically hit
|
||||
if (target->effectMask && !(target->effectMask & (1 << i)))
|
||||
continue;
|
||||
|
||||
if (!m_spellInfo->IsPositiveEffect(i))
|
||||
|
||||
Reference in new issue
Block a user