Core/Scripts: Val'anyr Hammer of Ancient Kings should proc only with effective heal

Port From (https://github.com/TrinityCore/TrinityCore/commit/6c2d0d709ac461cf0e4b530994923e5a43fb7a94)
This commit is contained in:
hondacrx
2021-04-16 15:35:59 -04:00
parent d1dbc3b3c0
commit e73c2a9710
2 changed files with 17 additions and 0 deletions
+14
View File
@@ -782,6 +782,20 @@ namespace Scripts.Spells.Items
}
}
[Script] // 64415 Val'anyr Hammer of Ancient Kings - Equip Effect
class spell_item_valanyr_hammer_of_ancient_kings : AuraScript
{
bool CheckProc(ProcEventInfo eventInfo)
{
return eventInfo.GetHealInfo() != null && eventInfo.GetHealInfo().GetEffectiveHeal() > 0;
}
public override void Register()
{
DoCheckProc.Add(new CheckProcHandler(CheckProc));
}
}
[Script] // 71564 - Deadly Precision
class spell_item_deadly_precision : AuraScript
{
@@ -0,0 +1,3 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_item_valanyr_hammer_of_ancient_kings';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(64415,'spell_item_valanyr_hammer_of_ancient_kings');