Core/Spells: Move Big Blizzard Bear implementation to spell script (#19544)

This commit is contained in:
Mikhail Redko
2017-05-04 18:46:10 +03:00
committed by ariel-
parent 5ff8601d36
commit 8a5b998f48
4 changed files with 8 additions and 18 deletions

View File

@@ -3809,24 +3809,6 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
return;
}
case 58983: // Big Blizzard Bear
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
// Prevent stacking of mounts and client crashes upon dismounting
unitTarget->RemoveAurasByType(SPELL_AURA_MOUNTED);
// Triggered spell id dependent on riding skill
if (uint16 skillval = unitTarget->ToPlayer()->GetSkillValue(SKILL_RIDING))
{
if (skillval >= 150)
unitTarget->CastSpell(unitTarget, 58999, true);
else
unitTarget->CastSpell(unitTarget, 58997, true);
}
return;
}
case 59317: // Teleporting
{