diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2018-03-10 19:40:05 -0300 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-09-05 22:43:48 +0200 |
| commit | a2ea26816e19224484377697311f3de1f4cc8f55 (patch) | |
| tree | b3f69306a4693f87fbf8fb909e7ba82ca69d8b7c /src/server/game/Spells/SpellEffects.cpp | |
| parent | 7c63a99babe3331d82353467a58d8a3c7cf25099 (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
(cherry picked from commit d6b9f148a772d07b9353a0db95a6f05c9c848a63)
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index de9e35cbd1c..a3507d6aeaa 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -1022,10 +1022,6 @@ void Spell::EffectApplyAura() aurApp = unitTarget->_CreateAuraApplication(_spellAura, 1 << effectInfo->EffectIndex); else aurApp->UpdateApplyEffectMask(aurApp->GetEffectsToApply() | 1 << effectInfo->EffectIndex); - - // apply effect on target (skip for reapply) - if (!aurApp->HasEffect(effectInfo->EffectIndex)) - unitTarget->_ApplyAuraEffect(_spellAura, effectInfo->EffectIndex); } void Spell::EffectUnlearnSpecialization() |
