*Do not allow to use flying mount on wintergrasp.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-23 01:44:32 -05:00
parent 322769ee55
commit a75446579b

View File

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