mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[10214] Small final (as i think ;) ) fixes for restricted flight zone
* Fixed my horriable typo in 58600 effect code. Thanks to zergtmn for pointing to it. * Remove redundent cast 45472 in 58600 effect code (it casted from 58601 already). Thanks to porteyoplait. * Prevent restart 58600 debuf timer at temporary leave zone and return to it.
This commit is contained in:
parent
73a00a6807
commit
15374bd626
3 changed files with 5 additions and 8 deletions
|
|
@ -6643,8 +6643,8 @@ void Player::UpdateArea(uint32 newArea)
|
|||
if (area)
|
||||
{
|
||||
// Dalaran restricted flight zone
|
||||
if ((area->flags & AREA_FLAG_CANNOT_FLY) && IsFreeFlying() && !isGameMaster())
|
||||
CastSpell(this, 58600, true);
|
||||
if ((area->flags & AREA_FLAG_CANNOT_FLY) && IsFreeFlying() && !isGameMaster() && !HasAura(58600))
|
||||
CastSpell(this, 58600, true); // Restricted Flight Area
|
||||
|
||||
// TODO: implement wintergrasp parachute when battle in progress
|
||||
/* if ((area->flags & AREA_FLAG_OUTDOOR_PVP) && IsFreeFlying() && <WINTERGRASP_BATTLE_IN_PROGRESS> && !isGameMaster())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue