aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-05-28 18:19:15 -0300
committerfunjoker <funjoker109@gmail.com>2020-06-14 23:49:04 +0200
commitb1f1cc45147b445c9f05ad1f5d69234ba032b1bc (patch)
tree95fa11f647a325365bf003a7bc3a3621bd596954
parent6f73960480368521fbc1d4cb58e940c8916d162e (diff)
Core/Spell: in case of immunity, check all effects to choose correct procFlags, as none has technically hit
(cherry picked from commit 63e502a67dfdfb4edb8a84af630244ac13600b24)
-rw-r--r--src/server/game/Spells/Spell.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index 483347d030a..ca79aa1ac0e 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -2346,7 +2346,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))