Fly mounts fix.
--HG-- branch : trunk
This commit is contained in:
+2
-21
@@ -20287,27 +20287,8 @@ bool Player::IsAllowUseFlyMountsHere() const
|
|||||||
if (isGameMaster())
|
if (isGameMaster())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
switch(GetVirtualMapForMapAndZone(GetMapId(), GetZoneId()))
|
uint32 v_map = GetVirtualMapForMapAndZone(GetMapId(), GetZoneId());
|
||||||
{
|
return v_map == 530 || v_map == 571 && HasSpell(54197);
|
||||||
case 0:
|
|
||||||
case 1:
|
|
||||||
//if (!sWorld.getConfig(CONFIG_FLYING_MOUNTS_AZEROTH))
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case 530:
|
|
||||||
//if (!sWorld.getConfig(CONFIG_FLYING_MOUNTS_OUTLAND))
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case 571:
|
|
||||||
if(!HasSpell(54197))
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
//if (!sWorld.getConfig(CONFIG_FLYING_MOUNTS_OTHERS))
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::learnSpellHighRank(uint32 spellid)
|
void Player::learnSpellHighRank(uint32 spellid)
|
||||||
|
|||||||
Reference in New Issue
Block a user