From 9012e7560d91fe2691b0341e4bd6b77ff3185077 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 29 Jul 2022 17:25:08 -0400 Subject: [PATCH] Core/Spells: OnPrecast script should be called before ReSetTimer Port From (https://github.com/TrinityCore/TrinityCore/commit/47086f9e6942157a1d877aa7f598b27d30273812) --- Source/Game/Spells/Spell.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index eb830bdc9..fdb4c0585 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -2540,11 +2540,11 @@ namespace Game.Spells m_caster.ToCreature().SetSpellFocus(this, null); } + CallScriptOnPrecastHandler(); + // set timer base at cast time ReSetTimer(); - CallScriptOnPrecastHandler(); - Log.outDebug(LogFilter.Spells, "Spell.prepare: spell id {0} source {1} caster {2} customCastFlags {3} mask {4}", m_spellInfo.Id, m_caster.GetEntry(), m_originalCaster != null ? (int)m_originalCaster.GetEntry() : -1, _triggeredCastFlags, m_targets.GetTargetMask()); if (m_spellInfo.HasAttribute(SpellAttr12.StartCooldownOnCastStart))