aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Valle Herrera <subv2112@gmail.com>2014-06-05 10:13:08 -0500
committerSebastian Valle Herrera <subv2112@gmail.com>2014-06-05 10:13:08 -0500
commitd098a3ce8d6cc43cbbd0d11390e86420f914b0f6 (patch)
treec6afbdad38de3ea8530023635e5178fa5b9448b8 /src
parent22b04d39bf64e1dc19657128a7a31b1f3df7fb26 (diff)
parent2282a4c359e38bfe29f5eac4538e05230c5420c5 (diff)
Merge pull request #12219 from Trisjdc/spell_swift_retribution
Core/Spells: Swift Retribution should be reapplied when needed to be able to gain spellmods
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_paladin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp
index bf4f1b77a19..447cb645e76 100644
--- a/src/server/scripts/Spells/spell_paladin.cpp
+++ b/src/server/scripts/Spells/spell_paladin.cpp
@@ -866,8 +866,8 @@ class spell_pal_improved_aura : public SpellScriptLoader
void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
Unit* target = GetTarget();
- if (!target->GetOwnedAura(_spellId))
- target->CastSpell(target, _spellId, true);
+ GetTarget()->RemoveOwnedAura(_spellId, GetCasterGUID()); // need to remove to reapply spellmods
+ target->CastSpell(target, _spellId, true);
}
void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)