Add (core): Additional Teleport Helpers (#11277)
Additional Teleport helper placements.
This commit is contained in:
@@ -227,7 +227,7 @@ void WorldSession::HandleActivateTaxiOpcode(WorldPacket& recvData)
|
|||||||
ObjectGuid guid;
|
ObjectGuid guid;
|
||||||
std::vector<uint32> nodes;
|
std::vector<uint32> nodes;
|
||||||
nodes.resize(2);
|
nodes.resize(2);
|
||||||
|
GetPlayer()->SetCanTeleport(true);
|
||||||
recvData >> guid >> nodes[0] >> nodes[1];
|
recvData >> guid >> nodes[0] >> nodes[1];
|
||||||
LOG_DEBUG("network", "WORLD: Received CMSG_ACTIVATETAXI from {} to {}", nodes[0], nodes[1]);
|
LOG_DEBUG("network", "WORLD: Received CMSG_ACTIVATETAXI from {} to {}", nodes[0], nodes[1]);
|
||||||
Creature* npc = GetPlayer()->GetNPCIfCanInteractWith(guid, UNIT_NPC_FLAG_FLIGHTMASTER);
|
Creature* npc = GetPlayer()->GetNPCIfCanInteractWith(guid, UNIT_NPC_FLAG_FLIGHTMASTER);
|
||||||
@@ -251,6 +251,7 @@ void WorldSession::HandleActivateTaxiOpcode(WorldPacket& recvData)
|
|||||||
|
|
||||||
void WorldSession::SendActivateTaxiReply(ActivateTaxiReply reply)
|
void WorldSession::SendActivateTaxiReply(ActivateTaxiReply reply)
|
||||||
{
|
{
|
||||||
|
GetPlayer()->SetCanTeleport(true);
|
||||||
WorldPacket data(SMSG_ACTIVATETAXIREPLY, 4);
|
WorldPacket data(SMSG_ACTIVATETAXIREPLY, 4);
|
||||||
data << uint32(reply);
|
data << uint32(reply);
|
||||||
SendPacket(&data);
|
SendPacket(&data);
|
||||||
|
|||||||
Reference in New Issue
Block a user