diff options
author | tartalo <none@none> | 2009-12-01 11:43:57 +0100 |
---|---|---|
committer | tartalo <none@none> | 2009-12-01 11:43:57 +0100 |
commit | d7262a62986ccdf24fdf8a8f3702246adf359d3d (patch) | |
tree | bb2db8c29496b1aa0776807b52e5bc79c70886ad /src/game/SpellMgr.cpp | |
parent | b7934fc24505b42f03764a9dddbfe6ab1d1af2c3 (diff) |
Implement No Fly Zone using Spell, by Spp. Needs db support. Closes #494
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r-- | src/game/SpellMgr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 447a6059777..f0a46a3b7ed 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -3045,6 +3045,12 @@ bool SpellArea::IsFitToRequirements(Player const* player, uint32 newZone, uint32 if (!player || player->GetTeamId() != sWorld.getState(WORLDSTATE_WINTERGRASP_CONTROLING_FACTION)) return false; break; + case 58600: // No fly Zone - Dalaran + case 58730: // No fly Zone - Wintergrasp + if (!player || !player->HasAuraType(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED) && !player->HasAuraType(SPELL_AURA_FLY) + || player->HasAura(45472) || player->HasAura(44795)) + return false; + break; } return true; |