Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps

This commit is contained in:
Vincent_Michael
2013-01-02 22:03:35 +01:00
78 changed files with 646 additions and 80 deletions

View File

@@ -1268,7 +1268,7 @@ bool CreatureEventAI::CanCast(Unit* target, SpellInfo const* spell, bool trigger
return false;
//Check for power
if (!triggered && me->GetPower((Powers)spell->PowerType) < spell->CalcPowerCost(me, spell->GetSchoolMask()))
if (!triggered && me->GetPower((Powers)spell->PowerType) < uint32(spell->CalcPowerCost(me, spell->GetSchoolMask())))
return false;
//Unit is out of range of this spell

View File

@@ -23,18 +23,18 @@
enum HighGuid
{
HIGHGUID_ITEM = 0x400, // blizz 4000
HIGHGUID_CONTAINER = 0x400, // blizz 4000
HIGHGUID_PLAYER = 0x000, // blizz 0000
HIGHGUID_GAMEOBJECT = 0xF11, // blizz F110
HIGHGUID_TRANSPORT = 0xF12, // blizz F120 (for GAMEOBJECT_TYPE_TRANSPORT)
HIGHGUID_UNIT = 0xF13, // blizz F130
HIGHGUID_PET = 0xF14, // blizz F140
HIGHGUID_VEHICLE = 0xF15, // blizz F550
HIGHGUID_DYNAMICOBJECT = 0xF10, // blizz F100
HIGHGUID_ITEM = 0x4000, // blizz 4000
HIGHGUID_CONTAINER = 0x4000, // blizz 4000
HIGHGUID_PLAYER = 0x0000, // blizz 0000
HIGHGUID_GAMEOBJECT = 0xF110, // blizz F110
HIGHGUID_TRANSPORT = 0xF120, // blizz F120 (for GAMEOBJECT_TYPE_TRANSPORT)
HIGHGUID_UNIT = 0xF130, // blizz F130
HIGHGUID_PET = 0xF140, // blizz F140
HIGHGUID_VEHICLE = 0xF150, // blizz F550
HIGHGUID_DYNAMICOBJECT = 0xF100, // blizz F100
HIGHGUID_CORPSE = 0xF101, // blizz F100
HIGHGUID_MO_TRANSPORT = 0x1FC, // blizz 1FC0 (for GAMEOBJECT_TYPE_MO_TRANSPORT)
HIGHGUID_GROUP = 0x1F5
HIGHGUID_MO_TRANSPORT = 0x1FC0, // blizz 1FC0 (for GAMEOBJECT_TYPE_MO_TRANSPORT)
HIGHGUID_GROUP = 0x1F05
};
// used for creating values for respawn for example

View File

@@ -10,8 +10,8 @@
set(scripts_STAT_SRCS
${scripts_STAT_SRCS}
EasternKingdoms/ghostlands.cpp
EasternKingdoms/eversong_woods.cpp
EasternKingdoms/zone_ghostlands.cpp
EasternKingdoms/zone_eversong_woods.cpp
EasternKingdoms/AlteracValley/boss_galvangar.cpp
EasternKingdoms/AlteracValley/boss_balinda.cpp
EasternKingdoms/AlteracValley/boss_drekthar.cpp
@@ -31,7 +31,7 @@ set(scripts_STAT_SRCS
EasternKingdoms/Scholomance/instance_scholomance.cpp
EasternKingdoms/Scholomance/boss_lorekeeper_polkelt.cpp
EasternKingdoms/Scholomance/boss_ras_frostwhisper.cpp
EasternKingdoms/isle_of_queldanas.cpp
EasternKingdoms/zone_isle_of_queldanas.cpp
EasternKingdoms/boss_kruul.cpp
EasternKingdoms/ZulGurub/boss_hakkar.cpp
EasternKingdoms/ZulGurub/boss_mandokir.cpp
@@ -48,12 +48,12 @@ set(scripts_STAT_SRCS
EasternKingdoms/ZulGurub/boss_jindo.cpp
EasternKingdoms/ZulGurub/boss_wushoolay.cpp
EasternKingdoms/ZulGurub/boss_thekal.cpp
EasternKingdoms/wetlands.cpp
EasternKingdoms/arathi_highlands.cpp
EasternKingdoms/zone_wetlands.cpp
EasternKingdoms/zone_arathi_highlands.cpp
EasternKingdoms/Gnomeregan/instance_gnomeregan.cpp
EasternKingdoms/Gnomeregan/gnomeregan.cpp
EasternKingdoms/Gnomeregan/gnomeregan.h
EasternKingdoms/redridge_mountains.cpp
EasternKingdoms/zone_redridge_mountains.cpp
EasternKingdoms/BlackrockDepths/boss_high_interrogator_gerstahn.cpp
EasternKingdoms/BlackrockDepths/boss_gorosh_the_dervish.cpp
EasternKingdoms/BlackrockDepths/blackrock_depths.cpp
@@ -67,12 +67,12 @@ set(scripts_STAT_SRCS
EasternKingdoms/BlackrockDepths/blackrock_depths.h
EasternKingdoms/BlackrockDepths/boss_emperor_dagran_thaurissan.cpp
EasternKingdoms/BlackrockDepths/boss_magmus.cpp
EasternKingdoms/ironforge.cpp
EasternKingdoms/zone_ironforge.cpp
EasternKingdoms/ScarletEnclave/chapter2.cpp
EasternKingdoms/ScarletEnclave/chapter5.cpp
EasternKingdoms/ScarletEnclave/chapter1.cpp
EasternKingdoms/ScarletEnclave/the_scarlet_enclave.cpp
EasternKingdoms/eastern_plaguelands.cpp
EasternKingdoms/ScarletEnclave/zone_the_scarlet_enclave.cpp
EasternKingdoms/zone_eastern_plaguelands.cpp
EasternKingdoms/MoltenCore/boss_gehennas.cpp
EasternKingdoms/MoltenCore/boss_lucifron.cpp
EasternKingdoms/MoltenCore/boss_golemagg.cpp
@@ -99,7 +99,7 @@ set(scripts_STAT_SRCS
EasternKingdoms/Stratholme/boss_postmaster_malown.cpp
EasternKingdoms/Stratholme/stratholme.h
EasternKingdoms/Stratholme/stratholme.cpp
EasternKingdoms/tirisfal_glades.cpp
EasternKingdoms/zone_tirisfal_glades.cpp
EasternKingdoms/SunkenTemple/sunken_temple.cpp
EasternKingdoms/SunkenTemple/sunken_temple.h
EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp
@@ -115,7 +115,7 @@ set(scripts_STAT_SRCS
EasternKingdoms/Uldaman/uldaman.h
EasternKingdoms/Uldaman/instance_uldaman.cpp
EasternKingdoms/Uldaman/boss_archaedas.cpp
EasternKingdoms/swamp_of_sorrows.cpp
EasternKingdoms/zone_swamp_of_sorrows.cpp
EasternKingdoms/BlackrockSpire/boss_pyroguard_emberseer.cpp
EasternKingdoms/BlackrockSpire/boss_drakkisath.cpp
EasternKingdoms/BlackrockSpire/boss_warmaster_voone.cpp
@@ -139,12 +139,12 @@ set(scripts_STAT_SRCS
EasternKingdoms/SunwellPlateau/boss_brutallus.cpp
EasternKingdoms/SunwellPlateau/sunwell_plateau.cpp
EasternKingdoms/SunwellPlateau/boss_felmyst.cpp
EasternKingdoms/stranglethorn_vale.cpp
EasternKingdoms/zone_stranglethorn_vale.cpp
EasternKingdoms/Deadmines/deadmines.h
EasternKingdoms/Deadmines/deadmines.cpp
EasternKingdoms/Deadmines/boss_mr_smite.cpp
EasternKingdoms/Deadmines/instance_deadmines.cpp
EasternKingdoms/duskwood.cpp
EasternKingdoms/zone_duskwood.cpp
EasternKingdoms/ScarletMonastery/boss_azshir_the_sleepless.cpp
EasternKingdoms/ScarletMonastery/boss_mograine_and_whitemane.cpp
EasternKingdoms/ScarletMonastery/boss_bloodmage_thalnos.cpp
@@ -157,13 +157,13 @@ set(scripts_STAT_SRCS
EasternKingdoms/ScarletMonastery/boss_arcanist_doan.cpp
EasternKingdoms/ScarletMonastery/boss_herod.cpp
EasternKingdoms/ScarletMonastery/boss_scorn.cpp
EasternKingdoms/undercity.cpp
EasternKingdoms/silvermoon_city.cpp
EasternKingdoms/loch_modan.cpp
EasternKingdoms/zone_undercity.cpp
EasternKingdoms/zone_silvermoon_city.cpp
EasternKingdoms/zone_loch_modan.cpp
EasternKingdoms/ShadowfangKeep/shadowfang_keep.cpp
EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp
EasternKingdoms/ShadowfangKeep/shadowfang_keep.h
EasternKingdoms/burning_steppes.cpp
EasternKingdoms/zone_burning_steppes.cpp
EasternKingdoms/BlackwingLair/boss_chromaggus.cpp
EasternKingdoms/BlackwingLair/boss_razorgore.cpp
EasternKingdoms/BlackwingLair/boss_firemaw.cpp
@@ -174,8 +174,8 @@ set(scripts_STAT_SRCS
EasternKingdoms/BlackwingLair/boss_nefarian.cpp
EasternKingdoms/BlackwingLair/boss_flamegor.cpp
EasternKingdoms/BlackwingLair/boss_victor_nefarius.cpp
EasternKingdoms/blasted_lands.cpp
EasternKingdoms/stormwind_city.cpp
EasternKingdoms/zone_blasted_lands.cpp
EasternKingdoms/zone_stormwind_city.cpp
EasternKingdoms/ZulAman/boss_halazzi.cpp
EasternKingdoms/ZulAman/boss_hexlord.cpp
EasternKingdoms/ZulAman/boss_zuljin.cpp
@@ -185,11 +185,11 @@ set(scripts_STAT_SRCS
EasternKingdoms/ZulAman/boss_nalorakk.cpp
EasternKingdoms/ZulAman/zulaman.cpp
EasternKingdoms/ZulAman/zulaman.h
EasternKingdoms/hinterlands.cpp
EasternKingdoms/western_plaguelands.cpp
EasternKingdoms/alterac_mountains.cpp
EasternKingdoms/westfall.cpp
EasternKingdoms/silverpine_forest.cpp
EasternKingdoms/zone_hinterlands.cpp
EasternKingdoms/zone_western_plaguelands.cpp
EasternKingdoms/zone_alterac_mountains.cpp
EasternKingdoms/zone_westfall.cpp
EasternKingdoms/zone_silverpine_forest.cpp
EasternKingdoms/Karazhan/instance_karazhan.cpp
EasternKingdoms/Karazhan/boss_nightbane.cpp
EasternKingdoms/Karazhan/karazhan.cpp

View File

@@ -10,9 +10,9 @@
set(scripts_STAT_SRCS
${scripts_STAT_SRCS}
Kalimdor/stonetalon_mountains.cpp
Kalimdor/silithus.cpp
Kalimdor/moonglade.cpp
Kalimdor/zone_stonetalon_mountains.cpp
Kalimdor/zone_silithus.cpp
Kalimdor/zone_moonglade.cpp
Kalimdor/RazorfenDowns/razorfen_downs.cpp
Kalimdor/RazorfenDowns/instance_razorfen_downs.cpp
Kalimdor/RazorfenDowns/boss_amnennar_the_coldbringer.cpp
@@ -58,10 +58,10 @@ set(scripts_STAT_SRCS
Kalimdor/BlackfathomDeeps/blackfathom_deeps.cpp
Kalimdor/BlackfathomDeeps/boss_aku_mai.cpp
Kalimdor/BlackfathomDeeps/blackfathom_deeps.h
Kalimdor/azuremyst_isle.cpp
Kalimdor/orgrimmar.cpp
Kalimdor/desolace.cpp
Kalimdor/feralas.cpp
Kalimdor/zone_azuremyst_isle.cpp
Kalimdor/zone_orgrimmar.cpp
Kalimdor/zone_desolace.cpp
Kalimdor/zone_feralas.cpp
Kalimdor/Maraudon/boss_princess_theradras.cpp
Kalimdor/Maraudon/boss_landslide.cpp
Kalimdor/Maraudon/boss_celebras_the_cursed.cpp
@@ -78,7 +78,7 @@ set(scripts_STAT_SRCS
Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp
Kalimdor/TempleOfAhnQiraj/boss_ouro.cpp
Kalimdor/TempleOfAhnQiraj/boss_bug_trio.cpp
Kalimdor/darkshore.cpp
Kalimdor/zone_darkshore.cpp
Kalimdor/RuinsOfAhnQiraj/boss_buru.cpp
Kalimdor/RuinsOfAhnQiraj/instance_ruins_of_ahnqiraj.cpp
Kalimdor/RuinsOfAhnQiraj/boss_rajaxx.cpp
@@ -87,27 +87,27 @@ set(scripts_STAT_SRCS
Kalimdor/RuinsOfAhnQiraj/boss_moam.cpp
Kalimdor/RuinsOfAhnQiraj/ruins_of_ahnqiraj.h
Kalimdor/RuinsOfAhnQiraj/boss_kurinnaxx.cpp
Kalimdor/mulgore.cpp
Kalimdor/bloodmyst_isle.cpp
Kalimdor/thunder_bluff.cpp
Kalimdor/azshara.cpp
Kalimdor/zone_mulgore.cpp
Kalimdor/zone_bloodmyst_isle.cpp
Kalimdor/zone_thunder_bluff.cpp
Kalimdor/zone_azshara.cpp
Kalimdor/RazorfenKraul/razorfen_kraul.h
Kalimdor/RazorfenKraul/instance_razorfen_kraul.cpp
Kalimdor/RazorfenKraul/razorfen_kraul.cpp
Kalimdor/the_barrens.cpp
Kalimdor/ungoro_crater.cpp
Kalimdor/zone_the_barrens.cpp
Kalimdor/zone_ungoro_crater.cpp
Kalimdor/WailingCaverns/wailing_caverns.h
Kalimdor/WailingCaverns/instance_wailing_caverns.cpp
Kalimdor/WailingCaverns/wailing_caverns.cpp
Kalimdor/durotar.cpp
Kalimdor/felwood.cpp
Kalimdor/zone_durotar.cpp
Kalimdor/zone_felwood.cpp
Kalimdor/boss_azuregos.cpp
Kalimdor/tanaris.cpp
Kalimdor/dustwallow_marsh.cpp
Kalimdor/winterspring.cpp
Kalimdor/thousand_needles.cpp
Kalimdor/ashenvale.cpp
Kalimdor/teldrassil.cpp
Kalimdor/zone_tanaris.cpp
Kalimdor/zone_dustwallow_marsh.cpp
Kalimdor/zone_winterspring.cpp
Kalimdor/zone_thousand_needles.cpp
Kalimdor/zone_ashenvale.cpp
Kalimdor/zone_teldrassil.cpp
Kalimdor/OnyxiasLair/boss_onyxia.cpp
Kalimdor/OnyxiasLair/onyxias_lair.h
Kalimdor/OnyxiasLair/instance_onyxias_lair.cpp

View File

@@ -10,9 +10,9 @@
set(scripts_STAT_SRCS
${scripts_STAT_SRCS}
Northrend/wintergrasp.cpp
Northrend/zone_wintergrasp.cpp
Northrend/isle_of_conquest.cpp
Northrend/storm_peaks.cpp
Northrend/zone_storm_peaks.cpp
Northrend/Ulduar/HallsOfLightning/instance_halls_of_lightning.cpp
Northrend/Ulduar/HallsOfLightning/boss_bjarngrim.cpp
Northrend/Ulduar/HallsOfLightning/halls_of_lightning.h
@@ -78,8 +78,8 @@ set(scripts_STAT_SRCS
Northrend/Nexus/Oculus/boss_urom.cpp
Northrend/Nexus/Oculus/oculus.cpp
Northrend/Nexus/Oculus/instance_oculus.cpp
Northrend/Nexus/Nexus/commander_kolurg.cpp
Northrend/Nexus/Nexus/commander_stoutbeard.cpp
Northrend/Nexus/Nexus/boss_commander_kolurg.cpp
Northrend/Nexus/Nexus/boss_commander_stoutbeard.cpp
Northrend/Nexus/Nexus/boss_ormorok.cpp
Northrend/Nexus/Nexus/boss_magus_telestra.cpp
Northrend/Nexus/Nexus/instance_nexus.cpp
@@ -117,14 +117,14 @@ set(scripts_STAT_SRCS
Northrend/Naxxramas/instance_naxxramas.cpp
Northrend/Naxxramas/boss_grobbulus.cpp
Northrend/Naxxramas/boss_noth.cpp
Northrend/crystalsong_forest.cpp
Northrend/zone_crystalsong_forest.cpp
Northrend/VaultOfArchavon/boss_archavon.cpp
Northrend/VaultOfArchavon/boss_koralon.cpp
Northrend/VaultOfArchavon/vault_of_archavon.h
Northrend/VaultOfArchavon/instance_vault_of_archavon.cpp
Northrend/VaultOfArchavon/boss_emalon.cpp
Northrend/VaultOfArchavon/boss_toravon.cpp
Northrend/sholazar_basin.cpp
Northrend/zone_sholazar_basin.cpp
Northrend/UtgardeKeep/UtgardePinnacle/boss_palehoof.cpp
Northrend/UtgardeKeep/UtgardePinnacle/boss_svala.cpp
Northrend/UtgardeKeep/UtgardePinnacle/instance_pinnacle.cpp
@@ -137,8 +137,8 @@ set(scripts_STAT_SRCS
Northrend/UtgardeKeep/UtgardeKeep/instance_utgarde_keep.cpp
Northrend/UtgardeKeep/UtgardeKeep/boss_keleseth.cpp
Northrend/UtgardeKeep/UtgardeKeep/utgarde_keep.cpp
Northrend/dragonblight.cpp
Northrend/grizzly_hills.cpp
Northrend/zone_dragonblight.cpp
Northrend/zone_grizzly_hills.cpp
Northrend/AzjolNerub/AzjolNerub/azjol_nerub.h
Northrend/AzjolNerub/AzjolNerub/instance_azjol_nerub.cpp
Northrend/AzjolNerub/AzjolNerub/boss_krikthir_the_gatewatcher.cpp
@@ -176,8 +176,8 @@ set(scripts_STAT_SRCS
Northrend/IcecrownCitadel/boss_valithria_dreamwalker.cpp
Northrend/IcecrownCitadel/boss_sindragosa.cpp
Northrend/IcecrownCitadel/boss_the_lich_king.cpp
Northrend/zuldrak.cpp
Northrend/icecrown.cpp
Northrend/zone_zuldrak.cpp
Northrend/zone_icecrown.cpp
Northrend/Gundrak/boss_slad_ran.cpp
Northrend/Gundrak/instance_gundrak.cpp
Northrend/Gundrak/boss_drakkari_colossus.cpp
@@ -185,9 +185,9 @@ set(scripts_STAT_SRCS
Northrend/Gundrak/boss_gal_darah.cpp
Northrend/Gundrak/boss_moorabi.cpp
Northrend/Gundrak/boss_eck.cpp
Northrend/borean_tundra.cpp
Northrend/howling_fjord.cpp
Northrend/dalaran.cpp
Northrend/zone_borean_tundra.cpp
Northrend/zone_howling_fjord.cpp
Northrend/zone_dalaran.cpp
Northrend/DraktharonKeep/boss_trollgore.cpp
Northrend/DraktharonKeep/instance_drak_tharon_keep.cpp
Northrend/DraktharonKeep/boss_novos.cpp

View File

@@ -10,7 +10,7 @@
set(scripts_STAT_SRCS
${scripts_STAT_SRCS}
Outland/nagrand.cpp
Outland/zone_nagrand.cpp
Outland/HellfireCitadel/MagtheridonsLair/magtheridons_lair.h
Outland/HellfireCitadel/MagtheridonsLair/instance_magtheridons_lair.cpp
Outland/HellfireCitadel/MagtheridonsLair/boss_magtheridon.cpp
@@ -44,7 +44,7 @@ set(scripts_STAT_SRCS
Outland/CoilfangReservoir/SerpentShrine/boss_morogrim_tidewalker.cpp
Outland/CoilfangReservoir/underbog/boss_hungarfen.cpp
Outland/CoilfangReservoir/underbog/boss_the_black_stalker.cpp
Outland/shattrath_city.cpp
Outland/zone_shattrath_city.cpp
Outland/TempestKeep/Mechanar/boss_mechano_lord_capacitus.cpp
Outland/TempestKeep/Mechanar/boss_pathaleon_the_calculator.cpp
Outland/TempestKeep/Mechanar/boss_nethermancer_sepethrea.cpp
@@ -62,7 +62,7 @@ set(scripts_STAT_SRCS
Outland/TempestKeep/botanica/the_botanica.h
Outland/TempestKeep/botanica/instance_the_botanica.cpp
Outland/TempestKeep/botanica/boss_commander_sarannis.cpp
Outland/TempestKeep/botanica/thorngrin_the_tender.cpp
Outland/TempestKeep/botanica/boss_thorngrin_the_tender.cpp
Outland/TempestKeep/botanica/boss_high_botanist_freywinn.cpp
Outland/TempestKeep/botanica/boss_warp_splinter.cpp
Outland/TempestKeep/botanica/boss_laj.cpp
@@ -85,8 +85,8 @@ set(scripts_STAT_SRCS
Outland/Auchindoun/ShadowLabyrinth/shadow_labyrinth.h
Outland/Auchindoun/ShadowLabyrinth/boss_grandmaster_vorpil.cpp
Outland/boss_doomwalker.cpp
Outland/terokkar_forest.cpp
Outland/hellfire_peninsula.cpp
Outland/zone_terokkar_forest.cpp
Outland/zone_hellfire_peninsula.cpp
Outland/boss_doomlord_kazzak.cpp
Outland/BlackTemple/boss_teron_gorefiend.cpp
Outland/BlackTemple/black_temple.h
@@ -100,14 +100,14 @@ set(scripts_STAT_SRCS
Outland/BlackTemple/boss_warlord_najentus.cpp
Outland/BlackTemple/boss_bloodboil.cpp
Outland/BlackTemple/boss_illidan.cpp
Outland/shadowmoon_valley.cpp
Outland/blades_edge_mountains.cpp
Outland/zone_shadowmoon_valley.cpp
Outland/zone_blades_edge_mountains.cpp
Outland/GruulsLair/boss_high_king_maulgar.cpp
Outland/GruulsLair/boss_gruul.cpp
Outland/GruulsLair/gruuls_lair.h
Outland/GruulsLair/instance_gruuls_lair.cpp
Outland/netherstorm.cpp
Outland/zangarmarsh.cpp
Outland/zone_netherstorm.cpp
Outland/zone_zangarmarsh.cpp
)
message(" -> Prepared: Outland")