All pastes #973005 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-04-05 21:30 UTC
rendered paste body
void Spell::EffectActivateTaxipath(uint32 i)
{
    if(unitTarget->GetTypeId() != TYPEID_PLAYER)
        return;

    Player *_player = (Player*)unitTarget;

    uint32 pathId = m_spellInfo->EffectMiscValue[i];
    TaxiNodesEntry const* node = sTaxiNodesStore.LookupEntry(pathId);

    std::vector<uint32> nodes;

    for(uint32 i = 0; i < nodes.size(); ++i)
    {
        uint32 node;
        nodes.push_back(node);
    }

    if(nodes.empty())
        return;

    _player->ActivateTaxiPathTo(nodes);
}