Scripts/Spells: Fix loop for proc on "Earthen Rage"

Port From (https://github.com/TrinityCore/TrinityCore/commit/8abfda5fb020a85fd4d4fdacc795083f830385ca)
This commit is contained in:
hondacrx
2022-07-10 15:00:36 -04:00
parent ae9308c1cb
commit 3003d1351f
+6
View File
@@ -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));
}