Implement No Fly Zone using Spell, by Spp. Needs db support. Closes #494

--HG--
branch : trunk
This commit is contained in:
tartalo
2009-12-01 11:43:57 +01:00
parent b7934fc245
commit d7262a6298
12 changed files with 68 additions and 81 deletions

View File

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