Core/Spells: Partial fix spells 62056, 63985 (Stone Grip Force Cast - Part of Kologarn encounter), underlying AuraEffect::HandleAuraControlVehicle will no longer prematurely return.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-12-27 14:53:47 +01:00
parent d951407822
commit bdc47053cc

View File

@@ -1600,6 +1600,13 @@ void Spell::EffectForceCast(SpellEffIndex effIndex)
}
}
switch (triggered_spell_id)
{
case 62056: case 63985: // Stone Grip Forcecast (10m, 25m)
unitTarget->CastSpell(unitTarget, spellInfo, true); // Don't send m_originalCasterGUID param here or underlying
return; // AureEffect::HandleAuraControlVehicle will fail on caster == target
}
Unit * caster = GetTriggeredSpellCaster(spellInfo, m_caster, unitTarget);
caster->CastSpell(unitTarget, spellInfo, true, NULL, NULL, m_originalCasterGUID);