fix flying form in no fly zones after teleport

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

View File

@@ -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);