aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGildor <gildor55@gmail.com>2020-01-02 17:07:39 +0100
committerKeader <keader.android@gmail.com>2020-01-02 13:07:39 -0300
commit78e77a086b4eefc868841213ff19dd9b3732ee40 (patch)
treea1da1343e5bad83af3382d00c29af2f1193f2bb1
parented939325374216d6a049e778d6ad864c65283ae6 (diff)
Core/Spells: Fix Sacred Shield (Paladin) absorb amount with ICC buff (#24023)
-rw-r--r--src/server/scripts/Spells/spell_paladin.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp
index 5baed5cf59c..eb91c11a451 100644
--- a/src/server/scripts/Spells/spell_paladin.cpp
+++ b/src/server/scripts/Spells/spell_paladin.cpp
@@ -136,6 +136,12 @@ enum PaladinSpellIcons
PALADIN_ICON_ID_HAMMER_OF_THE_RIGHTEOUS = 3023
};
+enum MiscSpellIcons
+{
+ SPELL_ICON_ID_STRENGTH_OF_WRYNN = 1704,
+ SPELL_ICON_ID_HELLSCREAM_WARSONG = 937
+};
+
// 31850 - Ardent Defender
class spell_pal_ardent_defender : public SpellScriptLoader
{
@@ -1938,6 +1944,12 @@ class spell_pal_sacred_shield : public SpellScriptLoader
// Battleground - Dampening
else if (AuraEffect const* auraEffBattlegroudDampening = caster->GetAuraEffect(SPELL_GENERIC_BATTLEGROUND_DAMPENING, EFFECT_0))
AddPct(amount, auraEffBattlegroudDampening->GetAmount());
+
+ // ICC buff
+ if (AuraEffect const* auraStrengthOfWrynn = caster->GetAuraEffect(SPELL_AURA_MOD_HEALING_DONE_PERCENT, SPELLFAMILY_GENERIC, SPELL_ICON_ID_STRENGTH_OF_WRYNN, EFFECT_2))
+ AddPct(amount, auraStrengthOfWrynn->GetAmount());
+ else if (AuraEffect const* auraHellscreamsWarsong = caster->GetAuraEffect(SPELL_AURA_MOD_HEALING_DONE_PERCENT, SPELLFAMILY_GENERIC, SPELL_ICON_ID_HELLSCREAM_WARSONG, EFFECT_2))
+ AddPct(amount, auraHellscreamsWarsong->GetAmount());
}
}