aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeader <keader.android@gmail.com>2017-12-29 14:16:53 -0300
committerfunjoker <funjoker109@gmail.com>2021-04-15 05:53:27 +0200
commit6c2d0d709ac461cf0e4b530994923e5a43fb7a94 (patch)
treeaf90b432cf040b7c81f8b6b8ef401ea52e1a7a2e /src
parent313b2ff526dda221b03c7b75bc4aaa3550f739f7 (diff)
Core/Scripts: Val'anyr Hammer of Ancient Kings should proc only with effective heal
(cherry picked from commit 502864e86c0a29ac4e64b20ee0c2e853cecd0401)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_item.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp
index 81e169db811..58897220708 100644
--- a/src/server/scripts/Spells/spell_item.cpp
+++ b/src/server/scripts/Spells/spell_item.cpp
@@ -443,6 +443,22 @@ class spell_item_blessing_of_ancient_kings : public AuraScript
}
};
+// 64415 Val'anyr Hammer of Ancient Kings - Equip Effect
+class spell_item_valanyr_hammer_of_ancient_kings : public AuraScript
+{
+ PrepareAuraScript(spell_item_valanyr_hammer_of_ancient_kings);
+
+ bool CheckProc(ProcEventInfo& eventInfo)
+ {
+ return eventInfo.GetHealInfo() && eventInfo.GetHealInfo()->GetEffectiveHeal() > 0;
+ }
+
+ void Register() override
+ {
+ DoCheckProc += AuraCheckProcFn(spell_item_valanyr_hammer_of_ancient_kings::CheckProc);
+ }
+};
+
enum DeadlyPrecision
{
SPELL_DEADLY_PRECISION = 71564
@@ -4058,6 +4074,7 @@ void AddSC_item_spell_scripts()
RegisterAuraScript(spell_item_aura_of_madness);
RegisterAuraScript(spell_item_dementia);
RegisterAuraScript(spell_item_blessing_of_ancient_kings);
+ RegisterAuraScript(spell_item_valanyr_hammer_of_ancient_kings);
RegisterAuraScript(spell_item_deadly_precision);
RegisterSpellScript(spell_item_deadly_precision_dummy);
new spell_item_deathbringers_will<SPELL_STRENGTH_OF_THE_TAUNKA, SPELL_AGILITY_OF_THE_VRYKUL, SPELL_POWER_OF_THE_TAUNKA, SPELL_AIM_OF_THE_IRON_DWARVES, SPELL_SPEED_OF_THE_VRYKUL>("spell_item_deathbringers_will_normal");