diff options
| author | Gustavo <sirikfoll@hotmail.com> | 2019-04-03 23:36:26 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-03 23:36:26 -0300 |
| commit | 50f122de778bca324d0f4c81f1e8eb30b90a7314 (patch) | |
| tree | 8523e5c89a078341ca04b49ead8a1bc4e7a608f8 /src/server/scripts/Spells | |
| parent | 70a88e21950ba6c8fa4a6f2ccb43d73702158bc0 (diff) | |
Core/Misc: Warning fixes (/W4) (#23149)
* Core/Misc: Warning fixes (/W4)
Diffstat (limited to 'src/server/scripts/Spells')
| -rw-r--r-- | src/server/scripts/Spells/spell_paladin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp index 046704e2057..f0b443955e1 100644 --- a/src/server/scripts/Spells/spell_paladin.cpp +++ b/src/server/scripts/Spells/spell_paladin.cpp @@ -311,11 +311,11 @@ class spell_pal_avenging_wrath : public SpellScriptLoader void HandleApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) { Unit* target = GetTarget(); - if (AuraEffect const* aurEff = target->GetAuraEffectOfRankedSpell(SPELL_PALADIN_SANCTIFIED_WRATH_TALENT_R1, EFFECT_2)) + if (AuraEffect const* sanctifiedWrathAurEff = target->GetAuraEffectOfRankedSpell(SPELL_PALADIN_SANCTIFIED_WRATH_TALENT_R1, EFFECT_2)) { - CastSpellExtraArgs args(aurEff); - args.AddSpellMod(SPELLVALUE_BASE_POINT0, aurEff->GetAmount()) - .AddSpellMod(SPELLVALUE_BASE_POINT1, aurEff->GetAmount()); + CastSpellExtraArgs args(sanctifiedWrathAurEff); + args.AddSpellMod(SPELLVALUE_BASE_POINT0, sanctifiedWrathAurEff->GetAmount()) + .AddSpellMod(SPELLVALUE_BASE_POINT1, sanctifiedWrathAurEff->GetAmount()); target->CastSpell(target, SPELL_PALADIN_SANCTIFIED_WRATH, args); } |
