From 3003d1351f17c70ee320249cf8359ae3043a3ce0 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 10 Jul 2022 15:00:36 -0400 Subject: [PATCH] Scripts/Spells: Fix loop for proc on "Earthen Rage" Port From (https://github.com/TrinityCore/TrinityCore/commit/8abfda5fb020a85fd4d4fdacc795083f830385ca) --- Source/Scripts/Spells/Shaman.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Scripts/Spells/Shaman.cs b/Source/Scripts/Spells/Shaman.cs index 66b7817c9..c315eb281 100644 --- a/Source/Scripts/Spells/Shaman.cs +++ b/Source/Scripts/Spells/Shaman.cs @@ -390,6 +390,11 @@ namespace Scripts.Spells.Shaman return ValidateSpellInfo(SpellIds.EarthenRagePeriodic, SpellIds.EarthenRageDamage); } + bool CheckProc(ProcEventInfo procInfo) + { + return procInfo.GetSpellInfo() != null && procInfo.GetSpellInfo().Id != SpellIds.EarthenRageDamage; + } + void HandleEffectProc(AuraEffect aurEff, ProcEventInfo eventInfo) { PreventDefaultAction(); @@ -399,6 +404,7 @@ namespace Scripts.Spells.Shaman public override void Register() { + DoCheckProc.Add(new CheckProcHandler(CheckProc)); OnEffectProc.Add(new EffectProcHandler(HandleEffectProc, 0, AuraType.Dummy)); }