[9882] Add support for mounts dependent from riding skill and location

This commit is contained in:
Laise 2010-05-12 13:33:17 +03:00
parent faf3e287c7
commit 41c58f3be9
5 changed files with 91 additions and 1 deletions

View file

@ -2290,6 +2290,9 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
// not use ammo and not allow use
((Player*)m_target)->RemoveAmmo();
return;
case 48025: // Headless Horseman's Mount
Spell::SelectMountByAreaAndSkill(m_target, 51621, 48024, 51617, 48023, NULL);
return;
case 62061: // Festive Holiday Mount
if (m_target->HasAuraType(SPELL_AURA_MOUNTED))
// Reindeer Transformation
@ -2305,6 +2308,15 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
if (m_target->GetTypeId() == TYPEID_PLAYER)
((Player*)m_target)->removeSpell(63680);
return;
case 72286: // Invincible
Spell::SelectMountByAreaAndSkill(m_target, 72281, 72282, 72283, 72284, NULL);
return;
case 74856: // Blazing Hippogryph
Spell::SelectMountByAreaAndSkill(m_target, NULL, NULL, 74854, 74855, NULL);
return;
case 75614: // Celestial Steed
Spell::SelectMountByAreaAndSkill(m_target, 75619, 75620, 75617, 75618, 76153);
return;
}
break;
}