Scripts/Spells: Fix loop for proc on "Earthen Rage"
Port From (https://github.com/TrinityCore/TrinityCore/commit/8abfda5fb020a85fd4d4fdacc795083f830385ca)
This commit is contained in:
@@ -390,6 +390,11 @@ namespace Scripts.Spells.Shaman
|
|||||||
return ValidateSpellInfo(SpellIds.EarthenRagePeriodic, SpellIds.EarthenRageDamage);
|
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)
|
void HandleEffectProc(AuraEffect aurEff, ProcEventInfo eventInfo)
|
||||||
{
|
{
|
||||||
PreventDefaultAction();
|
PreventDefaultAction();
|
||||||
@@ -399,6 +404,7 @@ namespace Scripts.Spells.Shaman
|
|||||||
|
|
||||||
public override void Register()
|
public override void Register()
|
||||||
{
|
{
|
||||||
|
DoCheckProc.Add(new CheckProcHandler(CheckProc));
|
||||||
OnEffectProc.Add(new EffectProcHandler(HandleEffectProc, 0, AuraType.Dummy));
|
OnEffectProc.Add(new EffectProcHandler(HandleEffectProc, 0, AuraType.Dummy));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user