From c23045a38d2d37a711b6bb7f3b088c442757cede Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 14 Sep 2023 02:46:42 -0400 Subject: [PATCH] Core/Spells: Updated default SpellPhaseMask that is generated for procs that do not have entry in spell_proc table Port From (https://github.com/TrinityCore/TrinityCore/commit/b8f3bb8cba288ee1b5805929355d15606474af34) --- Source/Game/Spells/SpellManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Game/Spells/SpellManager.cs b/Source/Game/Spells/SpellManager.cs index f622218f3..7fc13c40c 100644 --- a/Source/Game/Spells/SpellManager.cs +++ b/Source/Game/Spells/SpellManager.cs @@ -1522,6 +1522,9 @@ namespace Game.Entities procEntry.SpellPhaseMask = ProcFlagsSpellPhase.Hit; procEntry.HitMask = ProcFlagsHit.None; // uses default proc @see SpellMgr::CanSpellTriggerProcOnEvent + if (!procEntry.ProcFlags.HasFlag(ProcFlags.ReqSpellPhaseMask) && procEntry.ProcFlags.HasFlag(ProcFlags2.CastSuccessful)) + procEntry.SpellPhaseMask = ProcFlagsSpellPhase.Cast; // set default phase for PROC_FLAG_2_CAST_SUCCESSFUL + bool triggersSpell = false; foreach (var spellEffectInfo in spellInfo.GetEffects()) {