mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spell: in case of immunity, check all effects to choose correct procFlags, as none has technically hit
This commit is contained in:
@@ -2309,7 +2309,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