diff options
author | megamage <none@none> | 2009-05-23 01:44:32 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-23 01:44:32 -0500 |
commit | a75446579bdbbfd7440caaf468e988ea82c34dd7 (patch) | |
tree | 358a446019881ec85a621c3b5cc6263d3cd26d97 /src/game/Player.cpp | |
parent | 322769ee550a709994d9076d502e145ce6da3e2c (diff) |
*Do not allow to use flying mount on wintergrasp.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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) |