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:
@@ -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');
|
||||
Reference in New Issue
Block a user