From 29921b5bea032c1f701dda5f4fe64e10dc0b067a Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 8 May 2009 18:52:12 -0500 Subject: [7798] More Player::ActivateTaxiPathTo use improvements Author: VladimirMangos * Provide more explicit way about spell that cast taxi flight if any * Remove incorrect states instead error reporting in case non-taximaster flight start (cast/script) * Remove mount_id arg from ActivateTaxiPathTo and implement support for 0 mount_id case (spell 32474) * Implement spell 32474 (except finilize part) * Provided Player::ActivateTaxiPathTo(uint32 taxi_path_id) function version for simplify one node to node paths use by id. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/game/SpellEffects.cpp') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 63fdf335ad5..3226ccdbec0 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5891,18 +5891,7 @@ void Spell::EffectSendTaxi(uint32 i) if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER) return; - TaxiPathEntry const* entry = sTaxiPathStore.LookupEntry(m_spellInfo->EffectMiscValue[i]); - if(!entry) - return; - - std::vector nodes; - - nodes.resize(2); - nodes[0] = entry->from; - nodes[1] = entry->to; - - ((Player*)unitTarget)->ActivateTaxiPathTo(nodes); - + ((Player*)unitTarget)->ActivateTaxiPathTo(m_spellInfo->EffectMiscValue[i],m_spellInfo->Id); } void Spell::EffectPlayerPull(uint32 i) -- cgit v1.2.3