[7729] Implement skill level dependent speed bonus for mount (item 40775). Author: Lightguard

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-29 00:17:33 -05:00
parent ce68fc9c64
commit 9dd4b8c985

View File

@@ -4843,6 +4843,25 @@ void Spell::EffectScriptEffect(uint32 effIndex)
unitTarget->CastSpell(unitTarget, damage, false);
break;
}
// Winged Steed of the Ebon Blade
case 54729:
{
if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
// Prevent stacking of mounts
unitTarget->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
// Triggered spell id dependent of riding skill
if(uint16 skillval = ((Player*)unitTarget)->GetSkillValue(SKILL_RIDING))
{
if (skillval >= 300)
unitTarget->CastSpell(unitTarget, 54727, true);
else
unitTarget->CastSpell(unitTarget, 54726, true);
}
return;
}
case 58418: // Portal to Orgrimmar
case 58420: // Portal to Stormwind
{