Core/Spells: fixed server being too overzealous with autoshot
Port From (https://github.com/TrinityCore/TrinityCore/commit/5323a7d38697967c12abe9b2903b97e271a2cac1)
This commit is contained in:
@@ -2458,7 +2458,7 @@ namespace Game.Spells
|
|||||||
m_caster.m_Events.AddEvent(_spellEvent, m_caster.m_Events.CalculateTime(1));
|
m_caster.m_Events.AddEvent(_spellEvent, m_caster.m_Events.CalculateTime(1));
|
||||||
|
|
||||||
//Prevent casting at cast another spell (ServerSide check)
|
//Prevent casting at cast another spell (ServerSide check)
|
||||||
if (!Convert.ToBoolean(_triggeredCastFlags & TriggerCastFlags.IgnoreCastInProgress) && m_caster.IsNonMeleeSpellCast(false, true, true) && !m_castId.IsEmpty())
|
if (!Convert.ToBoolean(_triggeredCastFlags & TriggerCastFlags.IgnoreCastInProgress) && m_caster.IsNonMeleeSpellCast(false, true, true, m_spellInfo.Id == 75) && !m_castId.IsEmpty())
|
||||||
{
|
{
|
||||||
SendCastResult(SpellCastResult.SpellInProgress);
|
SendCastResult(SpellCastResult.SpellInProgress);
|
||||||
Finish(false);
|
Finish(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user