Core/Spells: fixed server being too overzealous with autoshot

- Interrupting it when casting another spell and switching targets

Ref #21390
This commit is contained in:
ariel-
2018-02-14 23:10:41 -03:00
parent 1edd81f9d5
commit 93cbe815cb

View File

@@ -2921,7 +2921,7 @@ void Spell::prepare(SpellCastTargets const& targets, AuraEffect const* triggered
m_caster->m_Events.AddEvent(_spellEvent, m_caster->m_Events.CalculateTime(1));
//Prevent casting at cast another spell (ServerSide check)
if (!(_triggeredCastFlags & TRIGGERED_IGNORE_CAST_IN_PROGRESS) && m_caster->IsNonMeleeSpellCast(false, true, true) && m_cast_count)
if (!(_triggeredCastFlags & TRIGGERED_IGNORE_CAST_IN_PROGRESS) && m_caster->IsNonMeleeSpellCast(false, true, true, m_spellInfo->Id == 75) && m_cast_count)
{
SendCastResult(SPELL_FAILED_SPELL_IN_PROGRESS);
finish(false);