[12655m] Added some MOP enums etc. Thanks R2/TC

This commit is contained in:
Antz 2020-02-17 19:22:54 +00:00
parent 6cf7616857
commit c8194124df
No known key found for this signature in database
GPG key ID: 0DF907270598C85F
11 changed files with 3451 additions and 3258 deletions

View file

@ -1497,6 +1497,20 @@ void GameObject::Use(Unit* user)
case 37639: spellId = 36326; break;
case 45367: spellId = 45371; break;
case 45370: spellId = 45368; break;
// custom taxi flights
case 32059: // south
((Player*)user)->ActivateTaxiPathTo(520,0);
break;
case 32068: // west
((Player*)user)->ActivateTaxiPathTo(523,0);
break;
case 32075: // north
((Player*)user)->ActivateTaxiPathTo(522,0);
break;
case 32081: // east
((Player*)user)->ActivateTaxiPathTo(524,0);
break;
}
break;
@ -1773,6 +1787,12 @@ void GameObject::Use(Unit* user)
spellId = info->spellcaster.spellId;
// dismount players
if (user && user->IsMounted())
{
user->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
}
AddUse();
break;
}