Knockback (ex: Thunderstorm) and Jump (ex: Death Grip) effects must instantly interrupt spellcasting on victim. Fixes issue 1973

--HG--
branch : trunk
This commit is contained in:
Shocker
2010-08-25 05:14:16 +03:00
parent 4da71ac657
commit c741163313

View File

@@ -2098,6 +2098,10 @@ void Spell::EffectJump(uint32 i)
if (m_caster->isInFlight())
return;
// Instantly interrupt non melee spells being casted
if (m_caster->IsNonMeleeSpellCasted(true))
m_caster->InterruptNonMeleeSpells(true);
float x,y,z,o;
if (m_targets.getUnitTarget())
{
@@ -2125,6 +2129,10 @@ void Spell::EffectJumpDest(uint32 i)
if (m_caster->isInFlight())
return;
// Instantly interrupt non melee spells being casted
if (m_caster->IsNonMeleeSpellCasted(true))
m_caster->InterruptNonMeleeSpells(true);
// Init dest coordinates
float x,y,z,o;
if (m_targets.HasDst())
@@ -6324,6 +6332,10 @@ void Spell::EffectKnockBack(uint32 i)
if (!unitTarget)
return;
// Instantly interrupt non melee spells being casted
if (unitTarget->IsNonMeleeSpellCasted(true))
unitTarget->InterruptNonMeleeSpells(true);
// Typhoon
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_DRUID && m_spellInfo->SpellFamilyFlags[1] & 0x01000000)
{