diff options
author | megamage <none@none> | 2009-05-08 18:49:07 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-08 18:49:07 -0500 |
commit | 7277ddd1140d388939ae135f135d5bf58871dacf (patch) | |
tree | 1c480d3158f3c72feb3748c4d9d2bd8cb76c072b /src/game/SpellEffects.cpp | |
parent | e85e4c386b76e345cf615c743a3268408d72bffb (diff) |
[7797] Use DBC data for mount model selection in more cases. Author: VladimirMangos
* Use alt.team mount data for take player team model id if DB not provide own team creature id in spell taxi call case.
* Remove unddeded hacks for model ids from Spell::EffectSendTaxi
* Provide spell target for SPELL_EFFECT_SEND_TAXI for spell with target mode 0 for this effect.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index c411ea69bff..63fdf335ad5 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5901,36 +5901,7 @@ void Spell::EffectSendTaxi(uint32 i) nodes[0] = entry->from; nodes[1] = entry->to; - uint32 mountid = 0; - switch(m_spellInfo->Id) - { - case 31606: //Stormcrow Amulet - mountid = 17447; - break; - case 45071: //Quest - Sunwell Daily - Dead Scar Bombing Run - case 45113: //Quest - Sunwell Daily - Ship Bombing Run - case 45353: //Quest - Sunwell Daily - Ship Bombing Run Return - mountid = 22840; - break; - case 34905: //Stealth Flight - mountid = 6851; - break; - case 45883: //Amber Ledge to Beryl Point - mountid = 23524; - break; - case 46064: //Amber Ledge to Coldarra - mountid = 6371; - break; - case 53335: //Stormwind Harbor Flight - Peaceful - mountid = 6852; - break; - case 41533: //Fly of the Netherwing - case 41540: //Fly of the Netherwing - mountid = 23468; - break; - } - - ((Player*)unitTarget)->ActivateTaxiPathTo(nodes,mountid); + ((Player*)unitTarget)->ActivateTaxiPathTo(nodes); } |