mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 11:21:58 +01:00
fix flying form in no fly zones after teleport
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user