aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-03-12 19:03:35 -0300
committerariel- <ariel-@users.noreply.github.com>2018-03-12 19:04:00 -0300
commitabb602f7c12b00480899d245ad81abdf41f39621 (patch)
treef6adafb9be92b3959025382609d2fdefb127c3a6 /src
parente2ae302e2cfed8e68248e69af705ab0a2be2bc93 (diff)
Core/Spells: only apply aura effects when needed. Fixes #21602
Diffstat (limited to 'src')
-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 f6f8bf1db35..af3c2c2851a 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -2566,7 +2566,8 @@ void Spell::TargetInfo::DoDamageAndTriggers(Spell* spell)
if ((effMask & (1 << i)) && aurApp->HasEffect(i))
effMask &= ~(1 << i);
- _spellHitTarget->_ApplyAura(aurApp, effMask);
+ if (effMask)
+ _spellHitTarget->_ApplyAura(aurApp, effMask);
}
}