fix flying form in no fly zones after teleport

This commit is contained in:
Gangrene committed 2016-05-05 02:33:56 +02:00
1 parent 9a074db8bf
commit 24792b9361
2 files changed
+22 -1

No files matched your search

@@ -185,6 +185,10 @@ void WorldSession::HandleMoveWorldportAckOpcode()
GetPlayer()->GetZoneAndAreaId(newzone, newarea);
GetPlayer()->UpdateZone(newzone, newarea);
// can fly check
if (!_player->CanFlyInZone(newMap->GetId(), newarea))
_player->RemoveAurasByType(SPELL_AURA_FLY);
// honorless target
if (GetPlayer()->pvpInfo.IsHostile)
GetPlayer()->CastSpell(GetPlayer(), 2479, true);