aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-02-14 23:10:41 -0300
committerariel- <ariel-@users.noreply.github.com>2018-02-14 23:10:41 -0300
commit93cbe815cb6dfc1cd7535db2cabf81d42bf60da7 (patch)
tree8272a3d364273b418509d505bbfaaa077b07c9b6 /src
parent1edd81f9d503db566b4836ddffe369a788e271ad (diff)
Core/Spells: fixed server being too overzealous with autoshot
- Interrupting it when casting another spell and switching targets Ref #21390
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index dcf0bc5b1dc..3f938336a0f 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -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);