fix teleport to draenei/blood elves areas with flying aura

This commit is contained in:
Gangrene
2016-05-07 01:37:07 +02:00
parent 616c5ca2b3
commit 40f2ae4d07
2 changed files with 11 additions and 4 deletions

View File

@@ -263,6 +263,10 @@ void WorldSession::HandleMoveTeleportAck(WorldPacket& recvPacket)
// in friendly area
else if (plMover->IsPvP() && !plMover->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_IN_PVP))
plMover->UpdatePvP(false, false);
// can fly check
if (!plMover->CanFlyInZone(plMover->GetMapId(), newzone))
plMover->RemoveAurasByType(SPELL_AURA_FLY);
}
// resummon pet