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
This commit is contained in:
1 parent
5e6167ce46
commit
c889b81f2c
4 files changed
+101
-138
No files matched your search
@@ -953,10 +953,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)
|
||||
|
||||
Reference in new issue
Block a user