aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellEffects.cpp
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-03-10 19:40:05 -0300
committerariel- <ariel-@users.noreply.github.com>2018-03-10 19:40:19 -0300
commitd6b9f148a772d07b9353a0db95a6f05c9c848a63 (patch)
tree57b08bafa579a066de8206310dc9574720fbb5b9 /src/server/game/Spells/SpellEffects.cpp
parente7e46b2a822cd0179b30ba5b0fa7c6fe7cea8774 (diff)
Core/Spell: fix target checks
- Aura will be applied at last moment possible (after damage) to prevent regressions on #18395 - Partial revert of 9b38a6352c0fe2499de54fd769aa1c721a410bda as it wasnt handling correctly checks without spells Closes #21578 Closes #21579 Closes #21581
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index e1a374596f8..96dec8e753b 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -1212,10 +1212,6 @@ void Spell::EffectApplyAura(SpellEffIndex effIndex)
aurApp = unitTarget->_CreateAuraApplication(_spellAura, 1 << effIndex);
else
aurApp->UpdateApplyEffectMask(aurApp->GetEffectsToApply() | 1 << effIndex);
-
- // apply effect on target (skip for reapply)
- if (!aurApp->HasEffect(effIndex))
- unitTarget->_ApplyAuraEffect(_spellAura, effIndex);
}
void Spell::EffectUnlearnSpecialization(SpellEffIndex effIndex)