From a75446579bdbbfd7440caaf468e988ea82c34dd7 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 23 May 2009 01:44:32 -0500 Subject: *Do not allow to use flying mount on wintergrasp. --HG-- branch : trunk --- src/game/Player.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 8647afd2f69..e63b3ab8ff0 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -20162,8 +20162,9 @@ bool Player::IsAllowUseFlyMountsHere() const if (isGameMaster()) return true; - uint32 v_map = GetVirtualMapForMapAndZone(GetMapId(), GetZoneId()); - return v_map == 530 || v_map == 571 && HasSpell(54197); + uint32 zoneId = GetZoneId(); + uint32 v_map = GetVirtualMapForMapAndZone(GetMapId(), zoneId); + return v_map == 530 || v_map == 571 && HasSpell(54197) && zoneId != 4197; } void Player::learnSpellHighRank(uint32 spellid) -- cgit v1.2.3