mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
Speedup map checks
This commit is contained in:
parent
b9e695b727
commit
8e32c8ca76
3 changed files with 6 additions and 7 deletions
|
|
@ -18378,9 +18378,8 @@ void Player::SetClientControl(Unit* target, uint8 allowMove)
|
|||
void Player::UpdateZoneDependentAuras( uint32 newZone )
|
||||
{
|
||||
// remove new continent flight forms
|
||||
if( !isGameMaster() &&
|
||||
GetVirtualMapForMapAndZone(GetMapId(),newZone) != 530 &&
|
||||
GetVirtualMapForMapAndZone(GetMapId(),newZone) != 571)
|
||||
uint32 v_map = GetVirtualMapForMapAndZone(GetMapId(), newZone);
|
||||
if( !isGameMaster() && v_map != 530 && v_map != 571)
|
||||
{
|
||||
RemoveSpellsCausingAura(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED);
|
||||
RemoveSpellsCausingAura(SPELL_AURA_FLY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue