Реализует работу
http://ru.wowhead.com/item=49290
Автор: я
PHP код:
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -6047,12 +6047,34 @@
return;
}
+ case 65917: // Magic Rooster
+ {
+ if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
+ return;
+
+ // Prevent stacking of mounts
+ unitTarget->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
+
+ uint32 spellId = 66122; // common case
+
+ if (((Player*)unitTarget)->getGender() == GENDER_MALE)
+ {
+ switch (((Player*)unitTarget)->getRace())
+ {
+ case RACE_TAUREN: spellId = 66124; break;
+ case RACE_DRAENEI: spellId = 66123; break;
+ }
+ }
+
+ unitTarget->CastSpell(unitTarget, spellId, true);
+ return;
+ }
case 66477: // Bountiful Feast
{
if (!unitTarget)
return;