From 2b2e299cccfa5b1294b53d8d6756a31d4216d237 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Mon, 18 Sep 2017 14:23:26 +0200 Subject: [PATCH] Fixed all unused-parameters warnings issue #121 used clang-tidy to achieve this --- src/game/AI/CoreAI/PassiveAI.cpp | 2 +- src/game/AI/SmartScripts/SmartAI.cpp | 2 +- src/game/AuctionHouse/AuctionHouseMgr.cpp | 2 +- src/game/Battlefield/Zones/BattlefieldWG.cpp | 4 +- src/game/Battlegrounds/BattlegroundMgr.cpp | 2 +- .../Battlegrounds/Zones/BattlegroundEY.cpp | 2 +- .../Battlegrounds/Zones/BattlegroundIC.cpp | 2 +- src/game/DungeonFinding/LFGMgr.cpp | 2 +- src/game/Entities/Creature/Creature.cpp | 2 +- src/game/Entities/Object/Object.cpp | 2 +- src/game/Entities/Player/Player.cpp | 4 +- src/game/Entities/Transport/Transport.cpp | 2 +- src/game/Entities/Unit/Unit.cpp | 12 +++--- src/game/Globals/ObjectMgr.cpp | 2 +- src/game/Groups/Group.cpp | 2 +- src/game/Handlers/CharacterHandler.cpp | 2 +- src/game/Mails/Mail.cpp | 2 +- src/game/Maps/Map.cpp | 6 +-- src/game/Misc/AsyncAuctionListing.cpp | 2 +- src/game/Misc/AsyncAuctionListing.h | 2 +- .../EscortMovementGenerator.cpp | 2 +- src/game/Spells/Spell.cpp | 4 +- src/game/Spells/SpellEffects.cpp | 6 +-- src/game/Weather/Weather.cpp | 2 +- src/scripts/Commands/cs_achievement.cpp | 2 +- src/scripts/Commands/cs_lfg.cpp | 4 +- src/scripts/Commands/cs_misc.cpp | 2 +- src/scripts/Commands/cs_spectator.cpp | 6 +-- .../BlackwingLair/boss_nefarian.cpp | 4 +- .../EasternKingdoms/Karazhan/boss_curator.cpp | 2 +- .../Karazhan/boss_midnight.cpp | 4 +- .../Karazhan/boss_servant_quarters.cpp | 2 +- .../Karazhan/instance_karazhan.cpp | 2 +- .../boss_priestess_delrissa.cpp | 8 ++-- .../instance_scarlet_monastery.cpp | 2 +- .../instance_shadowfang_keep.cpp | 2 +- .../SunwellPlateau/boss_felmyst.cpp | 6 +-- .../SunwellPlateau/boss_kalecgos.cpp | 4 +- .../SunwellPlateau/boss_kiljaeden.cpp | 8 ++-- .../SunwellPlateau/boss_muru.cpp | 6 +-- .../Uldaman/instance_uldaman.cpp | 4 +- .../zone_eastern_plaguelands.cpp | 2 +- .../zone_isle_of_queldanas.cpp | 2 +- src/scripts/Events/brewfest.cpp | 14 +++---- src/scripts/Events/hallows_end.cpp | 22 +++++------ src/scripts/Events/midsummer.cpp | 4 +- src/scripts/Events/pilgrims_bounty.cpp | 8 ++-- .../CullingOfStratholme/boss_epoch.cpp | 2 +- .../CullingOfStratholme/boss_mal_ganis.cpp | 2 +- .../CullingOfStratholme/boss_meathook.cpp | 2 +- .../CullingOfStratholme/boss_salramm.cpp | 2 +- .../culling_of_stratholme.cpp | 4 +- .../boss_captain_skarloc.cpp | 2 +- .../EscapeFromDurnholdeKeep/old_hillsbrad.cpp | 6 +-- .../instance_the_black_morass.cpp | 2 +- .../Kalimdor/OnyxiasLair/boss_onyxia.cpp | 10 ++--- .../OnyxiasLair/instance_onyxias_lair.cpp | 2 +- .../Kalimdor/ZulFarrak/instance_zulfarrak.cpp | 2 +- .../AzjolNerub/AzjolNerub/boss_anubarak.cpp | 6 +-- .../ahnkahet/boss_jedoga_shadowseeker.cpp | 2 +- .../ahnkahet/boss_prince_taldaram.cpp | 2 +- .../AzjolNerub/ahnkahet/instance_ahnkahet.cpp | 2 +- .../ObsidianSanctum/boss_sartharion.cpp | 8 ++-- .../instance_obsidian_sanctum.cpp | 2 +- .../boss_baltharus_the_warborn.cpp | 2 +- .../RubySanctum/boss_general_zarithrian.cpp | 2 +- .../RubySanctum/boss_halion.cpp | 12 +++--- .../RubySanctum/boss_saviana_ragefire.cpp | 2 +- .../boss_argent_challenge.cpp | 8 ++-- .../TrialOfTheChampion/boss_black_knight.cpp | 6 +-- .../boss_grand_champions.cpp | 10 ++--- .../instance_trial_of_the_champion.cpp | 2 +- .../trial_of_the_champion.cpp | 4 +- .../boss_anubarak_trial.cpp | 8 ++-- .../boss_faction_champions.cpp | 4 +- .../TrialOfTheCrusader/boss_lord_jaraxxus.cpp | 4 +- .../boss_northrend_beasts.cpp | 4 +- .../TrialOfTheCrusader/boss_twin_valkyr.cpp | 8 ++-- .../instance_trial_of_the_crusader.cpp | 2 +- .../Northrend/DraktharonKeep/boss_novos.cpp | 6 +-- .../DraktharonKeep/boss_tharon_ja.cpp | 6 +-- .../DraktharonKeep/boss_trollgore.cpp | 2 +- .../instance_drak_tharon_keep.cpp | 2 +- .../ForgeOfSouls/boss_bronjahm.cpp | 2 +- .../ForgeOfSouls/instance_forge_of_souls.cpp | 2 +- .../HallsOfReflection/boss_marwyn.cpp | 2 +- .../HallsOfReflection/halls_of_reflection.cpp | 10 ++--- .../PitOfSaron/boss_forgemaster_garfrost.cpp | 4 +- .../PitOfSaron/boss_krickandick.cpp | 4 +- .../PitOfSaron/instance_pit_of_saron.cpp | 4 +- .../FrozenHalls/PitOfSaron/pit_of_saron.cpp | 10 ++--- .../Gundrak/boss_drakkari_colossus.cpp | 4 +- .../Northrend/Gundrak/boss_gal_darah.cpp | 2 +- .../Northrend/Gundrak/boss_moorabi.cpp | 4 +- .../Northrend/Gundrak/boss_slad_ran.cpp | 2 +- .../boss_blood_prince_council.cpp | 10 ++--- .../boss_blood_queen_lana_thel.cpp | 4 +- .../boss_deathbringer_saurfang.cpp | 8 ++-- .../boss_icecrown_gunship_battle.cpp | 6 +-- .../boss_lady_deathwhisper.cpp | 6 +-- .../IcecrownCitadel/boss_lord_marrowgar.cpp | 2 +- .../boss_professor_putricide.cpp | 6 +-- .../IcecrownCitadel/boss_sindragosa.cpp | 2 +- .../IcecrownCitadel/boss_the_lich_king.cpp | 10 ++--- .../boss_valithria_dreamwalker.cpp | 4 +- .../IcecrownCitadel/icecrown_citadel.cpp | 18 ++++----- .../instance_icecrown_citadel.cpp | 4 +- .../Northrend/Naxxramas/boss_anubrekhan.cpp | 4 +- .../Northrend/Naxxramas/boss_faerlina.cpp | 6 +-- .../Naxxramas/boss_four_horsemen.cpp | 4 +- .../Northrend/Naxxramas/boss_gluth.cpp | 2 +- .../Northrend/Naxxramas/boss_gothik.cpp | 8 ++-- .../Northrend/Naxxramas/boss_grobbulus.cpp | 2 +- .../Northrend/Naxxramas/boss_heigan.cpp | 4 +- .../Northrend/Naxxramas/boss_kelthuzad.cpp | 6 +-- .../Northrend/Naxxramas/boss_loatheb.cpp | 6 +-- .../Northrend/Naxxramas/boss_maexxna.cpp | 8 ++-- src/scripts/Northrend/Naxxramas/boss_noth.cpp | 4 +- .../Northrend/Naxxramas/boss_patchwerk.cpp | 4 +- .../Northrend/Naxxramas/boss_razuvious.cpp | 4 +- .../Northrend/Naxxramas/boss_sapphiron.cpp | 4 +- .../Northrend/Naxxramas/boss_thaddius.cpp | 4 +- .../Naxxramas/instance_naxxramas.cpp | 2 +- .../Nexus/EyeOfEternity/boss_malygos.cpp | 32 ++++++++-------- .../instance_eye_of_eternity.cpp | 2 +- .../Nexus/Nexus/boss_magus_telestra.cpp | 4 +- .../Northrend/Nexus/Nexus/boss_ormorok.cpp | 2 +- .../Northrend/Nexus/Oculus/boss_drakos.cpp | 14 +++---- .../Northrend/Nexus/Oculus/boss_eregos.cpp | 10 ++--- .../Northrend/Nexus/Oculus/boss_varos.cpp | 8 ++-- .../Nexus/Oculus/instance_oculus.cpp | 2 +- src/scripts/Northrend/Nexus/Oculus/oculus.cpp | 4 +- .../Ulduar/HallsOfLightning/boss_ionar.cpp | 2 +- .../instance_halls_of_lightning.cpp | 2 +- .../Ulduar/HallsOfStone/boss_krystallus.cpp | 6 +-- .../HallsOfStone/boss_maiden_of_grief.cpp | 6 +-- .../Ulduar/HallsOfStone/boss_sjonnir.cpp | 10 ++--- .../Ulduar/HallsOfStone/brann_bronzebeard.cpp | 6 +-- .../HallsOfStone/instance_halls_of_stone.cpp | 2 +- .../Ulduar/boss_algalon_the_observer.cpp | 4 +- .../Ulduar/Ulduar/boss_assembly_of_iron.cpp | 20 +++++----- .../Northrend/Ulduar/Ulduar/boss_auriaya.cpp | 10 ++--- .../Ulduar/Ulduar/boss_flame_leviathan.cpp | 20 +++++----- .../Northrend/Ulduar/Ulduar/boss_freya.cpp | 4 +- .../Ulduar/Ulduar/boss_general_vezax.cpp | 18 ++++----- .../Northrend/Ulduar/Ulduar/boss_hodir.cpp | 34 ++++++++--------- .../Northrend/Ulduar/Ulduar/boss_ignis.cpp | 18 ++++----- .../Northrend/Ulduar/Ulduar/boss_kologarn.cpp | 16 ++++---- .../Northrend/Ulduar/Ulduar/boss_mimiron.cpp | 38 +++++++++---------- .../Ulduar/Ulduar/boss_razorscale.cpp | 12 +++--- .../Northrend/Ulduar/Ulduar/boss_thorim.cpp | 16 ++++---- .../Northrend/Ulduar/Ulduar/boss_xt002.cpp | 18 ++++----- .../Ulduar/Ulduar/boss_yoggsaron.cpp | 28 +++++++------- .../Ulduar/Ulduar/instance_ulduar.cpp | 4 +- .../Northrend/Ulduar/Ulduar/ulduar.cpp | 12 +++--- .../UtgardeKeep/UtgardeKeep/boss_keleseth.cpp | 2 +- .../UtgardeKeep/boss_skarvald_dalronn.cpp | 4 +- .../UtgardeKeep/instance_utgarde_keep.cpp | 2 +- .../UtgardePinnacle/boss_palehoof.cpp | 14 +++---- .../UtgardePinnacle/boss_skadi.cpp | 8 ++-- .../UtgardePinnacle/boss_ymiron.cpp | 6 +-- .../instance_utgarde_pinnacle.cpp | 2 +- .../Northrend/VaultOfArchavon/boss_emalon.cpp | 4 +- .../Northrend/VioletHold/boss_ichoron.cpp | 2 +- .../VioletHold/instance_violet_hold.cpp | 2 +- .../Northrend/VioletHold/violet_hold.cpp | 4 +- src/scripts/Northrend/isle_of_conquest.cpp | 4 +- .../Northrend/zone_crystalsong_forest.cpp | 2 +- src/scripts/Northrend/zone_dalaran.cpp | 2 +- src/scripts/Northrend/zone_dragonblight.cpp | 6 +-- src/scripts/Northrend/zone_grizzly_hills.cpp | 2 +- src/scripts/Northrend/zone_howling_fjord.cpp | 2 +- src/scripts/Northrend/zone_icecrown.cpp | 2 +- src/scripts/Northrend/zone_sholazar_basin.cpp | 6 +-- src/scripts/Northrend/zone_storm_peaks.cpp | 8 ++-- src/scripts/Northrend/zone_wintergrasp.cpp | 4 +- src/scripts/Northrend/zone_zuldrak.cpp | 4 +- .../boss_shirrak_the_dead_watcher.cpp | 2 +- .../Outland/BlackTemple/boss_bloodboil.cpp | 2 +- .../Outland/BlackTemple/boss_illidan.cpp | 16 ++++---- .../BlackTemple/boss_mother_shahraz.cpp | 6 +-- .../BlackTemple/boss_reliquary_of_souls.cpp | 8 ++-- .../BlackTemple/boss_shade_of_akama.cpp | 4 +- .../BlackTemple/boss_teron_gorefiend.cpp | 6 +-- .../BlackTemple/boss_warlord_najentus.cpp | 4 +- .../Outland/BlackTemple/illidari_council.cpp | 4 +- .../BlackTemple/instance_black_temple.cpp | 10 ++--- .../boss_hydross_the_unstable.cpp | 8 ++-- .../SerpentShrine/boss_lady_vashj.cpp | 2 +- .../boss_leotheras_the_blind.cpp | 8 ++-- .../SerpentShrine/boss_lurker_below.cpp | 2 +- .../SerpentShrine/instance_serpent_shrine.cpp | 12 +++--- .../SlavePens/boss_ahune.cpp | 2 +- .../underbog/boss_the_black_stalker.cpp | 2 +- src/scripts/Outland/GruulsLair/boss_gruul.cpp | 2 +- .../GruulsLair/boss_high_king_maulgar.cpp | 2 +- .../GruulsLair/instance_gruuls_lair.cpp | 2 +- .../BloodFurnace/boss_kelidan_the_breaker.cpp | 6 +-- .../boss_vazruden_the_herald.cpp | 2 +- .../MagtheridonsLair/boss_magtheridon.cpp | 2 +- .../boss_warchief_kargath_bladefist.cpp | 2 +- .../Outland/TempestKeep/Eye/boss_alar.cpp | 2 +- .../Outland/TempestKeep/Eye/boss_kaelthas.cpp | 4 +- .../TempestKeep/Eye/instance_the_eye.cpp | 2 +- .../Mechanar/boss_nethermancer_sepethrea.cpp | 2 +- .../boss_pathaleon_the_calculator.cpp | 2 +- .../arcatraz/instance_arcatraz.cpp | 2 +- .../Outland/zone_blades_edge_mountains.cpp | 2 +- src/scripts/Outland/zone_nagrand.cpp | 2 +- .../Outland/zone_shadowmoon_valley.cpp | 4 +- src/scripts/Outland/zone_terokkar_forest.cpp | 6 +-- src/scripts/Outland/zone_zangarmarsh.cpp | 2 +- src/scripts/Pet/pet_dk.cpp | 2 +- src/scripts/Pet/pet_generic.cpp | 2 +- src/scripts/Spells/spell_dk.cpp | 10 ++--- src/scripts/Spells/spell_druid.cpp | 10 ++--- src/scripts/Spells/spell_generic.cpp | 20 +++++----- src/scripts/Spells/spell_hunter.cpp | 10 ++--- src/scripts/Spells/spell_item.cpp | 6 +-- src/scripts/Spells/spell_mage.cpp | 10 ++--- src/scripts/Spells/spell_priest.cpp | 4 +- src/scripts/Spells/spell_rogue.cpp | 2 +- src/scripts/Spells/spell_shaman.cpp | 14 +++---- src/scripts/Spells/spell_warlock.cpp | 10 ++--- src/scripts/Spells/spell_warrior.cpp | 2 +- src/scripts/World/go_scripts.cpp | 8 ++-- src/scripts/World/npc_professions.cpp | 2 +- src/scripts/World/npc_taxi.cpp | 2 +- src/scripts/World/npcs_special.cpp | 4 +- 229 files changed, 643 insertions(+), 643 deletions(-) diff --git a/src/game/AI/CoreAI/PassiveAI.cpp b/src/game/AI/CoreAI/PassiveAI.cpp index 15c8cf7bb..3f5b4397b 100644 --- a/src/game/AI/CoreAI/PassiveAI.cpp +++ b/src/game/AI/CoreAI/PassiveAI.cpp @@ -40,7 +40,7 @@ void PossessedAI::JustDied(Unit* /*u*/) me->RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE); } -void PossessedAI::KilledUnit(Unit* victim) +void PossessedAI::KilledUnit(Unit* /*victim*/) { // We killed a creature, disable victim's loot //if (victim->GetTypeId() == TYPEID_UNIT) diff --git a/src/game/AI/SmartScripts/SmartAI.cpp b/src/game/AI/SmartScripts/SmartAI.cpp index f8e6f2624..77044f092 100644 --- a/src/game/AI/SmartScripts/SmartAI.cpp +++ b/src/game/AI/SmartScripts/SmartAI.cpp @@ -1054,7 +1054,7 @@ void SmartAI::sOnGameEvent(bool start, uint16 eventId) GetScript()->ProcessEventsFor(start ? SMART_EVENT_GAME_EVENT_START : SMART_EVENT_GAME_EVENT_END, NULL, eventId); } -void SmartAI::OnSpellClick(Unit* clicker, bool& result) +void SmartAI::OnSpellClick(Unit* clicker, bool& /*result*/) { // Xinef: i dont think this is necessery (can be made as event parameter) //if (!result) diff --git a/src/game/AuctionHouse/AuctionHouseMgr.cpp b/src/game/AuctionHouse/AuctionHouseMgr.cpp index f9b4a9049..5626a9dc8 100644 --- a/src/game/AuctionHouse/AuctionHouseMgr.cpp +++ b/src/game/AuctionHouse/AuctionHouseMgr.cpp @@ -506,7 +506,7 @@ void AuctionHouseObject::BuildListOwnerItems(WorldPacket& data, Player* player, bool AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player, std::wstring const& wsearchedname, uint32 listfrom, uint8 levelmin, uint8 levelmax, uint8 usable, uint32 inventoryType, uint32 itemClass, uint32 itemSubClass, uint32 quality, - uint32& count, uint32& totalcount, uint8 getAll) + uint32& count, uint32& totalcount, uint8 /*getAll*/) { uint32 itrcounter = 0; diff --git a/src/game/Battlefield/Zones/BattlefieldWG.cpp b/src/game/Battlefield/Zones/BattlefieldWG.cpp index 1f98dca92..804b3b5e5 100644 --- a/src/game/Battlefield/Zones/BattlefieldWG.cpp +++ b/src/game/Battlefield/Zones/BattlefieldWG.cpp @@ -619,7 +619,7 @@ void BattlefieldWG::OnCreatureCreate(Creature* creature) } } -void BattlefieldWG::OnCreatureRemove(Creature* creature) +void BattlefieldWG::OnCreatureRemove(Creature* /*creature*/) { /* possibly can be used later if (IsWarTime()) @@ -925,7 +925,7 @@ void BattlefieldWG::SendInitWorldStatesToAll() SendInitWorldStatesTo(player); } -void BattlefieldWG::BrokenWallOrTower(TeamId team) +void BattlefieldWG::BrokenWallOrTower(TeamId /*team*/) { // might be some use for this in the future. old code commented out below. KL /* if (team == GetDefenderTeam()) diff --git a/src/game/Battlegrounds/BattlegroundMgr.cpp b/src/game/Battlegrounds/BattlegroundMgr.cpp index 84b338b06..6b6d1c636 100644 --- a/src/game/Battlegrounds/BattlegroundMgr.cpp +++ b/src/game/Battlegrounds/BattlegroundMgr.cpp @@ -747,7 +747,7 @@ void BattlegroundMgr::BuildBattlegroundListPacket(WorldPacket* data, uint64 guid } } -void BattlegroundMgr::SendToBattleground(Player* player, uint32 instanceId, BattlegroundTypeId bgTypeId) +void BattlegroundMgr::SendToBattleground(Player* player, uint32 instanceId, BattlegroundTypeId /*bgTypeId*/) { if (Battleground* bg = GetBattleground(instanceId)) { diff --git a/src/game/Battlegrounds/Zones/BattlegroundEY.cpp b/src/game/Battlegrounds/Zones/BattlegroundEY.cpp index d37596cb3..5ab074755 100644 --- a/src/game/Battlegrounds/Zones/BattlegroundEY.cpp +++ b/src/game/Battlegrounds/Zones/BattlegroundEY.cpp @@ -422,7 +422,7 @@ void BattlegroundEY::EventPlayerClickedOnFlag(Player* player, GameObject* gameOb UpdateWorldState(NETHERSTORM_FLAG, 0); } -void BattlegroundEY::EventTeamLostPoint(TeamId teamId, uint32 point) +void BattlegroundEY::EventTeamLostPoint(TeamId /*teamId*/, uint32 point) { TeamId oldTeamId = _capturePointInfo[point]._ownerTeamId; if (oldTeamId == TEAM_ALLIANCE) diff --git a/src/game/Battlegrounds/Zones/BattlegroundIC.cpp b/src/game/Battlegrounds/Zones/BattlegroundIC.cpp index 9c29cd355..e1fed2c96 100644 --- a/src/game/Battlegrounds/Zones/BattlegroundIC.cpp +++ b/src/game/Battlegrounds/Zones/BattlegroundIC.cpp @@ -890,7 +890,7 @@ void BattlegroundIC::HandleCapturedNodes(ICNodePoint* nodePoint, bool recapture) } } -void BattlegroundIC::DestroyGate(Player* player, GameObject* go) +void BattlegroundIC::DestroyGate(Player* /*player*/, GameObject* go) { GateStatus[GetGateIDFromEntry(go->GetEntry())] = BG_IC_GATE_DESTROYED; uint32 uws_open = GetWorldStateFromGateEntry(go->GetEntry(), true); diff --git a/src/game/DungeonFinding/LFGMgr.cpp b/src/game/DungeonFinding/LFGMgr.cpp index 836cac77e..64d9eb265 100644 --- a/src/game/DungeonFinding/LFGMgr.cpp +++ b/src/game/DungeonFinding/LFGMgr.cpp @@ -2229,7 +2229,7 @@ uint8 LFGMgr::GetKicksLeft(uint64 guid) return kicks; } -void LFGMgr::RestoreState(uint64 guid, char const* debugMsg) +void LFGMgr::RestoreState(uint64 guid, char const* /*debugMsg*/) { if (IS_GROUP_GUID(guid)) { diff --git a/src/game/Entities/Creature/Creature.cpp b/src/game/Entities/Creature/Creature.cpp index bece9cf23..176315d74 100644 --- a/src/game/Entities/Creature/Creature.cpp +++ b/src/game/Entities/Creature/Creature.cpp @@ -2631,7 +2631,7 @@ bool Creature::SetSwim(bool enable) return true; } -bool Creature::SetCanFly(bool enable, bool packetOnly /* = false */) +bool Creature::SetCanFly(bool enable, bool /*packetOnly*/ /* = false */) { if (!Unit::SetCanFly(enable)) return false; diff --git a/src/game/Entities/Object/Object.cpp b/src/game/Entities/Object/Object.cpp index 6ca1f9465..aadc168ef 100644 --- a/src/game/Entities/Object/Object.cpp +++ b/src/game/Entities/Object/Object.cpp @@ -2152,7 +2152,7 @@ void WorldObject::SetZoneScript() } } -TempSummon* WorldObject::SummonCreature(uint32 entry, const Position &pos, TempSummonType spwtype, uint32 duration, uint32 vehId, SummonPropertiesEntry const *properties) const +TempSummon* WorldObject::SummonCreature(uint32 entry, const Position &pos, TempSummonType spwtype, uint32 duration, uint32 /*vehId*/, SummonPropertiesEntry const *properties) const { if (Map* map = FindMap()) { diff --git a/src/game/Entities/Player/Player.cpp b/src/game/Entities/Player/Player.cpp index 0907fd855..00d080ef6 100644 --- a/src/game/Entities/Player/Player.cpp +++ b/src/game/Entities/Player/Player.cpp @@ -4619,7 +4619,7 @@ bool Player::HasSpell(uint32 spell) const return (itr != m_spells.end() && itr->second->State != PLAYERSPELL_REMOVED && itr->second->IsInSpec(m_activeSpec)); } -bool Player::HasTalent(uint32 spell, uint8 spec) const +bool Player::HasTalent(uint32 spell, uint8 /*spec*/) const { PlayerTalentMap::const_iterator itr = m_talents.find(spell); return (itr != m_talents.end() && itr->second->State != PLAYERSPELL_REMOVED && itr->second->IsInSpec(m_activeSpec)); @@ -22658,7 +22658,7 @@ bool Player::IsVisibleGloballyFor(Player const* u) const } template -inline void UpdateVisibilityOf_helper(T* target, std::vector& /*v*/) +inline void UpdateVisibilityOf_helper(T* /*target*/, std::vector& /*v*/) { } diff --git a/src/game/Entities/Transport/Transport.cpp b/src/game/Entities/Transport/Transport.cpp index 87b78e4bc..9e67aecea 100644 --- a/src/game/Entities/Transport/Transport.cpp +++ b/src/game/Entities/Transport/Transport.cpp @@ -220,7 +220,7 @@ void MotionTransport::Update(uint32 diff) sScriptMgr->OnTransportUpdate(this, diff); } -void MotionTransport::DelayedUpdate(uint32 diff) +void MotionTransport::DelayedUpdate(uint32 /*diff*/) { if (GetKeyFrames().size() <= 1) return; diff --git a/src/game/Entities/Unit/Unit.cpp b/src/game/Entities/Unit/Unit.cpp index a48b08144..16713f49b 100644 --- a/src/game/Entities/Unit/Unit.cpp +++ b/src/game/Entities/Unit/Unit.cpp @@ -664,7 +664,7 @@ void Unit::DealDamageMods(Unit const* victim, uint32 &damage, uint32* absorb) } } -uint32 Unit::DealDamage(Unit* attacker, Unit* victim, uint32 damage, CleanDamage const* cleanDamage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask, SpellInfo const* spellProto, bool durabilityLoss, bool allowGM) +uint32 Unit::DealDamage(Unit* attacker, Unit* victim, uint32 damage, CleanDamage const* cleanDamage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask, SpellInfo const* spellProto, bool durabilityLoss, bool /*allowGM*/) { // Xinef: initialize damage done for rage calculations // Xinef: its rare to modify damage in hooks, however training dummy's sets damage to 0 @@ -3727,7 +3727,7 @@ bool Unit::IsUnderWater() const return m_last_isunderwater_status; } -void Unit::UpdateUnderwaterState(Map* m, float x, float y, float z) +void Unit::UpdateUnderwaterState(Map* /*m*/, float /*x*/, float /*y*/, float /*z*/) { } @@ -7898,7 +7898,7 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere // Used in case when access to whole aura is needed // All procs should be handled like this... -bool Unit::HandleAuraProc(Unit* victim, uint32 damage, Aura* triggeredByAura, SpellInfo const* procSpell, uint32 /*procFlag*/, uint32 procEx, uint32 cooldown, bool * handled) +bool Unit::HandleAuraProc(Unit* victim, uint32 damage, Aura* triggeredByAura, SpellInfo const* /*procSpell*/, uint32 /*procFlag*/, uint32 procEx, uint32 /*cooldown*/, bool * handled) { SpellInfo const* dummySpell = triggeredByAura->GetSpellInfo(); @@ -10043,7 +10043,7 @@ int32 Unit::DealHeal(Unit* healer, Unit* victim, uint32 addhealth) return gain; } -bool RedirectSpellEvent::Execute(uint64 e_time, uint32 p_time) +bool RedirectSpellEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/) { if (Unit* auraOwner = ObjectAccessor::GetUnit(_self, _auraOwnerGUID)) { @@ -18212,7 +18212,7 @@ void Unit::ExitVehicle(Position const* /*exitPosition*/) //! Coming Soon(TM) } -bool VehicleDespawnEvent::Execute(uint64 e_time, uint32 p_time) +bool VehicleDespawnEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/) { Position pos = _self; _self.MovePositionToFirstCollision(pos, 20.0f, M_PI); @@ -18853,7 +18853,7 @@ int32 Unit::CalculateAOEDamageReduction(int32 damage, uint32 schoolMask, Unit* c return damage; } -bool ConflagrateAuraStateDelayEvent::Execute(uint64 e_time, uint32 p_time) +bool ConflagrateAuraStateDelayEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/) { if (Unit* owner = ObjectAccessor::FindUnit(m_owner)) if (owner && m_caster && owner->IsInWorld()) diff --git a/src/game/Globals/ObjectMgr.cpp b/src/game/Globals/ObjectMgr.cpp index f0e0b4a6c..125b6d6c7 100644 --- a/src/game/Globals/ObjectMgr.cpp +++ b/src/game/Globals/ObjectMgr.cpp @@ -7858,7 +7858,7 @@ bool ObjectMgr::LoadTrinityStrings(const char* table, int32 min_value, int32 max return true; } -const char *ObjectMgr::GetTrinityString(int32 entry, LocaleConstant locale_idx) const +const char *ObjectMgr::GetTrinityString(int32 entry, LocaleConstant /*locale_idx*/) const { if (TrinityStringLocale const* msl = GetTrinityStringLocale(entry)) return msl->Content[DEFAULT_LOCALE].c_str(); diff --git a/src/game/Groups/Group.cpp b/src/game/Groups/Group.cpp index 4b79b375a..6e970365a 100644 --- a/src/game/Groups/Group.cpp +++ b/src/game/Groups/Group.cpp @@ -1801,7 +1801,7 @@ void Group::UpdateLooterGuid(WorldObject* pLootedObject, bool ifneed) } } -GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue(Battleground const* bgTemplate, BattlegroundQueueTypeId bgQueueTypeId, uint32 MinPlayerCount, uint32 /*MaxPlayerCount*/, bool isRated, uint32 arenaSlot) +GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue(Battleground const* bgTemplate, BattlegroundQueueTypeId /*bgQueueTypeId*/, uint32 MinPlayerCount, uint32 /*MaxPlayerCount*/, bool isRated, uint32 arenaSlot) { // check if this group is LFG group if (isLFGGroup()) diff --git a/src/game/Handlers/CharacterHandler.cpp b/src/game/Handlers/CharacterHandler.cpp index 576888da2..5abcd8a8e 100644 --- a/src/game/Handlers/CharacterHandler.cpp +++ b/src/game/Handlers/CharacterHandler.cpp @@ -1328,7 +1328,7 @@ void WorldSession::HandlePlayerLoginToCharInWorld(Player* pCurrChar) m_playerLoading = false; } -void WorldSession::HandlePlayerLoginToCharOutOfWorld(Player* pCurrChar) +void WorldSession::HandlePlayerLoginToCharOutOfWorld(Player* /*pCurrChar*/) { ASSERT(false); } diff --git a/src/game/Mails/Mail.cpp b/src/game/Mails/Mail.cpp index 047e0d03e..a4a50cccc 100644 --- a/src/game/Mails/Mail.cpp +++ b/src/game/Mails/Mail.cpp @@ -120,7 +120,7 @@ void MailDraft::deleteIncludedItems(SQLTransaction& trans, bool inDB /*= false*/ m_items.clear(); } -void MailDraft::SendReturnToSender(uint32 sender_acc, uint32 sender_guid, uint32 receiver_guid, SQLTransaction& trans) +void MailDraft::SendReturnToSender(uint32 /*sender_acc*/, uint32 sender_guid, uint32 receiver_guid, SQLTransaction& trans) { Player* receiver = ObjectAccessor::FindPlayerInOrOutOfWorld(MAKE_NEW_GUID(receiver_guid, 0, HIGHGUID_PLAYER)); diff --git a/src/game/Maps/Map.cpp b/src/game/Maps/Map.cpp index c073d7a84..a14b89306 100644 --- a/src/game/Maps/Map.cpp +++ b/src/game/Maps/Map.cpp @@ -501,13 +501,13 @@ void Map::InitializeObject(T* /*obj*/) } template<> -void Map::InitializeObject(Creature* obj) +void Map::InitializeObject(Creature* /*obj*/) { //obj->_moveState = MAP_OBJECT_CELL_MOVE_NONE; // pussywizard: this is shit } template<> -void Map::InitializeObject(GameObject* obj) +void Map::InitializeObject(GameObject* /*obj*/) { //obj->_moveState = MAP_OBJECT_CELL_MOVE_NONE; // pussywizard: this is shit } @@ -650,7 +650,7 @@ void Map::VisitNearbyCellsOf(WorldObject* obj, TypeContainerVisitoroutDebug(LOG_FILTER_POOLSYS, "%u", mapId); // pussywizard: for crashlogs diff --git a/src/game/Misc/AsyncAuctionListing.cpp b/src/game/Misc/AsyncAuctionListing.cpp index af1c4a526..35b042c52 100644 --- a/src/game/Misc/AsyncAuctionListing.cpp +++ b/src/game/Misc/AsyncAuctionListing.cpp @@ -13,7 +13,7 @@ std::list AsyncAuctionListingMgr::auctionListingList ACE_Thread_Mutex AsyncAuctionListingMgr::auctionListingLock; ACE_Thread_Mutex AsyncAuctionListingMgr::auctionListingTempLock; -bool AuctionListOwnerItemsDelayEvent::Execute(uint64 e_time, uint32 p_time) +bool AuctionListOwnerItemsDelayEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/) { if (Player* plr = ObjectAccessor::FindPlayer(playerguid)) plr->GetSession()->HandleAuctionListOwnerItemsEvent(data); diff --git a/src/game/Misc/AsyncAuctionListing.h b/src/game/Misc/AsyncAuctionListing.h index 3fb59e028..55abb27e7 100644 --- a/src/game/Misc/AsyncAuctionListing.h +++ b/src/game/Misc/AsyncAuctionListing.h @@ -12,7 +12,7 @@ class AuctionListOwnerItemsDelayEvent : public BasicEvent virtual ~AuctionListOwnerItemsDelayEvent() {} virtual bool Execute(uint64 e_time, uint32 p_time); - virtual void Abort(uint64 e_time) {} + virtual void Abort(uint64 /*e_time*/) {} bool getOwner() { return owner; } private: diff --git a/src/game/Movement/MovementGenerators/EscortMovementGenerator.cpp b/src/game/Movement/MovementGenerators/EscortMovementGenerator.cpp index 123a24438..47e40f6ae 100644 --- a/src/game/Movement/MovementGenerators/EscortMovementGenerator.cpp +++ b/src/game/Movement/MovementGenerators/EscortMovementGenerator.cpp @@ -32,7 +32,7 @@ void EscortMovementGenerator::DoInitialize(T* unit) } template -bool EscortMovementGenerator::DoUpdate(T* unit, uint32 diff) +bool EscortMovementGenerator::DoUpdate(T* unit, uint32 /*diff*/) { if (!unit) return false; diff --git a/src/game/Spells/Spell.cpp b/src/game/Spells/Spell.cpp index 0674b238c..e7d4042dd 100644 --- a/src/game/Spells/Spell.cpp +++ b/src/game/Spells/Spell.cpp @@ -2110,7 +2110,7 @@ void Spell::SearchAreaTargets(std::list& targets, float range, Pos SearchTargets > (searcher, containerTypeMask, m_caster, position, range); } -void Spell::SearchChainTargets(std::list& targets, uint32 chainTargets, WorldObject* target, SpellTargetObjectTypes objectType, SpellTargetCheckTypes selectType, SpellTargetSelectionCategories selectCategory, ConditionList* condList, bool isChainHeal) +void Spell::SearchChainTargets(std::list& targets, uint32 chainTargets, WorldObject* target, SpellTargetObjectTypes objectType, SpellTargetCheckTypes selectType, SpellTargetSelectionCategories /*selectCategory*/, ConditionList* condList, bool isChainHeal) { // max dist for jump target selection float jumpRadius = 0.0f; @@ -7574,7 +7574,7 @@ bool SpellEvent::IsDeletable() const return m_Spell->IsDeletable(); } -bool ReflectEvent::Execute(uint64 e_time, uint32 p_time) +bool ReflectEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/) { Unit* caster = ObjectAccessor::FindUnit(_casterGUID); Unit* target = ObjectAccessor::FindUnit(_targetGUID); diff --git a/src/game/Spells/SpellEffects.cpp b/src/game/Spells/SpellEffects.cpp index b107ae230..b244eb5a8 100644 --- a/src/game/Spells/SpellEffects.cpp +++ b/src/game/Spells/SpellEffects.cpp @@ -1613,7 +1613,7 @@ void Spell::EffectHealMechanical(SpellEffIndex /*effIndex*/) m_damage -= unitTarget->SpellHealingBonusTaken(m_originalCaster, m_spellInfo, heal, HEAL); } -void Spell::EffectHealthLeech(SpellEffIndex effIndex) +void Spell::EffectHealthLeech(SpellEffIndex /*effIndex*/) { if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET) return; @@ -2722,7 +2722,7 @@ void Spell::EffectUntrainTalents(SpellEffIndex /*effIndex*/) unitTarget->ToPlayer()->SendTalentWipeConfirm(guid); } -void Spell::EffectTeleUnitsFaceCaster(SpellEffIndex effIndex) +void Spell::EffectTeleUnitsFaceCaster(SpellEffIndex /*effIndex*/) { if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET) return; @@ -6205,7 +6205,7 @@ void Spell::EffectBind(SpellEffIndex effIndex) player->SendDirectMessage(&data); } -void Spell::EffectSummonRaFFriend(SpellEffIndex effIndex) +void Spell::EffectSummonRaFFriend(SpellEffIndex /*effIndex*/) { if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET) return; diff --git a/src/game/Weather/Weather.cpp b/src/game/Weather/Weather.cpp index af5101593..465cde59c 100644 --- a/src/game/Weather/Weather.cpp +++ b/src/game/Weather/Weather.cpp @@ -183,7 +183,7 @@ bool Weather::ReGenerate() return m_type != old_type || m_grade != old_grade; } -void Weather::SendWeatherUpdateToPlayer(Player* player) +void Weather::SendWeatherUpdateToPlayer(Player* /*player*/) { WorldPacket data(SMSG_WEATHER, (4 + 4 + 1)); data << uint32(GetWeatherState()); diff --git a/src/scripts/Commands/cs_achievement.cpp b/src/scripts/Commands/cs_achievement.cpp index f0059ca76..1af4da6c2 100644 --- a/src/scripts/Commands/cs_achievement.cpp +++ b/src/scripts/Commands/cs_achievement.cpp @@ -63,7 +63,7 @@ public: return true; } - static bool HandleAchievementCheckAllCommand(ChatHandler* handler, char const* args) + static bool HandleAchievementCheckAllCommand(ChatHandler* handler, char const* /*args*/) { Player* target = handler->getSelectedPlayer(); if (!target) diff --git a/src/scripts/Commands/cs_lfg.cpp b/src/scripts/Commands/cs_lfg.cpp index 2a290b049..d2bb60824 100644 --- a/src/scripts/Commands/cs_lfg.cpp +++ b/src/scripts/Commands/cs_lfg.cpp @@ -11,7 +11,7 @@ #include "Group.h" #include "Player.h" -void GetPlayerInfo(ChatHandler* handler, Player* player) +void GetPlayerInfo(ChatHandler* /*handler*/, Player* player) { if (!player) return; @@ -103,7 +103,7 @@ public: return true; } - static bool HandleLfgQueueInfoCommand(ChatHandler* handler, char const* args) + static bool HandleLfgQueueInfoCommand(ChatHandler* /*handler*/, char const* /*args*/) { return true; } diff --git a/src/scripts/Commands/cs_misc.cpp b/src/scripts/Commands/cs_misc.cpp index a1f36e64f..4bf648e95 100644 --- a/src/scripts/Commands/cs_misc.cpp +++ b/src/scripts/Commands/cs_misc.cpp @@ -1092,7 +1092,7 @@ public: return true; } - static bool HandleSaveCommand(ChatHandler* handler, char const* /*args*/) + static bool HandleSaveCommand(ChatHandler* /*handler*/, char const* /*args*/) { // pussywizard: fully disabled on 28.12.2011, but disabled it "silently" return true; diff --git a/src/scripts/Commands/cs_spectator.cpp b/src/scripts/Commands/cs_spectator.cpp index 82b92f044..06ac64894 100644 --- a/src/scripts/Commands/cs_spectator.cpp +++ b/src/scripts/Commands/cs_spectator.cpp @@ -34,7 +34,7 @@ public: return commandTable; } - static bool HandleSpectatorCommand(ChatHandler* handler, char const* args) + static bool HandleSpectatorCommand(ChatHandler* handler, char const* /*args*/) { handler->PSendSysMessage("Incorrect syntax."); handler->PSendSysMessage("Command has subcommands:"); @@ -50,7 +50,7 @@ public: return true; } - static bool HandleSpectatorResetCommand(ChatHandler* handler, char const* args) + static bool HandleSpectatorResetCommand(ChatHandler* handler, char const* /*args*/) { Player* p = handler->GetSession()->GetPlayer(); if (!p->IsSpectator()) @@ -59,7 +59,7 @@ public: return true; } - static bool HandleSpectatorLeaveCommand(ChatHandler* handler, char const* args) + static bool HandleSpectatorLeaveCommand(ChatHandler* handler, char const* /*args*/) { Player* player = handler->GetSession()->GetPlayer(); if (!player->IsSpectator() || !player->FindMap() || !player->FindMap()->IsBattleArena()) diff --git a/src/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_nefarian.cpp b/src/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_nefarian.cpp index 66e0d97b3..843aca5bd 100644 --- a/src/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_nefarian.cpp +++ b/src/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_nefarian.cpp @@ -184,7 +184,7 @@ public: } } - bool CanAIAttack(const Unit* target) const { return me->IsVisible(); } + bool CanAIAttack(const Unit* /*target*/) const { return me->IsVisible(); } void JustReachedHome() { @@ -434,7 +434,7 @@ public: Talk(SAY_SLAY, victim); } - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 type, uint32 /*id*/) { if (type != POINT_MOTION_TYPE) return; diff --git a/src/scripts/EasternKingdoms/Karazhan/boss_curator.cpp b/src/scripts/EasternKingdoms/Karazhan/boss_curator.cpp index 5999f58b9..ac8220bc3 100644 --- a/src/scripts/EasternKingdoms/Karazhan/boss_curator.cpp +++ b/src/scripts/EasternKingdoms/Karazhan/boss_curator.cpp @@ -51,7 +51,7 @@ class boss_curator : public CreatureScript me->ApplySpellImmune(0, IMMUNITY_EFFECT, SPELL_EFFECT_POWER_BURN, true); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) { diff --git a/src/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp b/src/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp index 10b427a08..5b69fa46e 100644 --- a/src/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp +++ b/src/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp @@ -223,7 +223,7 @@ class boss_attumen : public CreatureScript } } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->Mechanic == MECHANIC_DISARM && _events.GetNextEventTime(EVENT_KILL_TALK) == 0) { @@ -341,7 +341,7 @@ class boss_attumen_midnight : public CreatureScript Talk(SAY_ATTUMEN2_DEATH); } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->Mechanic == MECHANIC_DISARM && _events.GetNextEventTime(EVENT_KILL_TALK) == 0) { diff --git a/src/scripts/EasternKingdoms/Karazhan/boss_servant_quarters.cpp b/src/scripts/EasternKingdoms/Karazhan/boss_servant_quarters.cpp index b48eb20c6..8084d481e 100644 --- a/src/scripts/EasternKingdoms/Karazhan/boss_servant_quarters.cpp +++ b/src/scripts/EasternKingdoms/Karazhan/boss_servant_quarters.cpp @@ -59,7 +59,7 @@ class boss_servant_quarters : public CreatureScript me->DespawnOrUnsummon(1); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { me->setActive(true); if (me->GetEntry() == NPC_HYAKISS_THE_LURKER) diff --git a/src/scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp b/src/scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp index 38de299f9..19b6e2c66 100644 --- a/src/scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp +++ b/src/scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp @@ -323,7 +323,7 @@ public: amplitude = 5000; } - void Update(AuraEffect const* effect) + void Update(AuraEffect const* /*effect*/) { PreventDefaultAction(); if (roll_chance_i(35)) diff --git a/src/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp b/src/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp index d15f48c72..fe6aa57bb 100644 --- a/src/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp +++ b/src/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp @@ -116,7 +116,7 @@ public: summons.Summon(summon); } - void SummonedCreatureDies(Creature* summon, Unit*) + void SummonedCreatureDies(Creature* /*summon*/, Unit*) { if (me->IsAlive() && HelpersKilled < SAY_PLAYER_KILLED) { @@ -134,7 +134,7 @@ public: ++HelpersKilled; } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { Talk(SAY_AGGRO); summons.DoZoneInCombat(); @@ -266,7 +266,7 @@ struct boss_priestess_lackey_commonAI : public ScriptedAI uint32 actualEventId; uint8 aiType; - float GetThreatMod(float dist, float armor, uint32 health, uint32 /*maxhealth*/, Unit* target) + float GetThreatMod(float dist, float /*armor*/, uint32 health, uint32 /*maxhealth*/, Unit* target) { float unimportant_dist = (aiType == AI_TYPE_MELEE ? 5.0f : 25.0f); if (dist > unimportant_dist) dist -= unimportant_dist; else dist = 0.0f; @@ -426,7 +426,7 @@ public: events.ScheduleEvent(EVENT_SPELL_BACKSTAB, 4000); } - void MovementInform(uint32 type, uint32 point) + void MovementInform(uint32 type, uint32 /*point*/) { if (type == CHASE_MOTION_TYPE && me->HasAura(SPELL_VANISH) && me->GetVictim()) me->CastSpell(me->GetVictim(), SPELL_KIDNEY_SHOT, false); diff --git a/src/scripts/EasternKingdoms/ScarletMonastery/instance_scarlet_monastery.cpp b/src/scripts/EasternKingdoms/ScarletMonastery/instance_scarlet_monastery.cpp index 98fda0fc4..5253da6a2 100644 --- a/src/scripts/EasternKingdoms/ScarletMonastery/instance_scarlet_monastery.cpp +++ b/src/scripts/EasternKingdoms/ScarletMonastery/instance_scarlet_monastery.cpp @@ -276,7 +276,7 @@ public: return true; } - bool OnGossipSelect(Player* plr, Creature* npc, uint32 Sender, uint32 uiAction) + bool OnGossipSelect(Player* plr, Creature* npc, uint32 /*Sender*/, uint32 uiAction) { plr->PlayerTalkClass->ClearMenus(); diff --git a/src/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp b/src/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp index ee395845f..3edf7aee1 100644 --- a/src/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp +++ b/src/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp @@ -171,7 +171,7 @@ class spell_shadowfang_keep_forsaken_skills : public SpellScriptLoader GetUnitOwner()->CastSpell(GetUnitOwner(), _forsakenSpell, true); } - void HandleDummyTick(AuraEffect const* aurEff) + void HandleDummyTick(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); GetUnitOwner()->RemoveAurasDueToSpell(_forsakenSpell); diff --git a/src/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp b/src/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp index 33d0588c1..d82cbbbb2 100644 --- a/src/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp +++ b/src/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp @@ -398,7 +398,7 @@ public: me->CastSpell(me, SPELL_DEMONIC_VAPOR_PERIODIC, true); } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (me->GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_CONTROLLED) == NULL_MOTION_TYPE) { @@ -501,12 +501,12 @@ class spell_felmyst_fog_of_corruption_charm : public SpellScriptLoader { PrepareAuraScript(spell_felmyst_fog_of_corruption_charm_AuraScript); - void HandleApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetTarget()->CastSpell(GetTarget(), SPELL_FOG_OF_CORRUPTION_CHARM2, true); } - void HandleRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetTarget()->RemoveAurasDueToSpell(SPELL_FOG_OF_CORRUPTION_CHARM2); Unit::Kill(GetCaster(), GetTarget(), false); diff --git a/src/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp b/src/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp index 991bb67c5..5d5194d4a 100644 --- a/src/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp +++ b/src/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp @@ -663,7 +663,7 @@ class spell_kalecgos_curse_of_boundless_agony : public SpellScriptLoader { PrepareAuraScript(spell_kalecgos_curse_of_boundless_agony_AuraScript); - void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (InstanceScript* instance = GetUnitOwner()->GetInstanceScript()) if (instance->IsEncounterInProgress()) @@ -734,7 +734,7 @@ class spell_kalecgos_spectral_realm : public SpellScriptLoader { PrepareAuraScript(spell_kalecgos_spectral_realm_AuraScript); - void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SPECTRAL_EXHAUSTION, true); GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_TELEPORT_NORMAL_REALM, true); diff --git a/src/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp b/src/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp index 7d1678ea7..58464a96f 100644 --- a/src/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp +++ b/src/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp @@ -1122,7 +1122,7 @@ class spell_kiljaeden_flame_dart : public SpellScriptLoader { PrepareSpellScript(spell_kiljaeden_flame_dart_SpellScript); - void HandleSchoolDamage(SpellEffIndex effIndex) + void HandleSchoolDamage(SpellEffIndex /*effIndex*/) { if (Unit* target = GetHitUnit()) target->CastSpell(target, SPELL_FLAME_DART_EXPLOSION, true); @@ -1149,7 +1149,7 @@ class spell_kiljaeden_darkness : public SpellScriptLoader { PrepareAuraScript(spell_kiljaeden_darkness_AuraScript); - void HandleRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (GetUnitOwner()->GetTypeId() == TYPEID_UNIT) GetUnitOwner()->ToCreature()->AI()->DoAction(ACTION_NO_KILL_TALK); @@ -1209,12 +1209,12 @@ class spell_kiljaeden_vengeance_of_the_blue_flight : public SpellScriptLoader { PrepareAuraScript(spell_kiljaeden_vengeance_of_the_blue_flight_AuraScript); - void HandleApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_POSSESS_DRAKE_IMMUNITY, true); } - void HandleRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetUnitOwner()->RemoveAurasDueToSpell(SPELL_POSSESS_DRAKE_IMMUNITY); } diff --git a/src/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp b/src/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp index 27cf4190c..2b449feea 100644 --- a/src/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp +++ b/src/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp @@ -327,7 +327,7 @@ class spell_muru_summon_blood_elves_periodic : public SpellScriptLoader GetAura()->GetEffect(aurEff->GetEffIndex())->SetPeriodicTimer(10000); } - void OnPeriodic(AuraEffect const* aurEff) + void OnPeriodic(AuraEffect const* /*aurEff*/) { GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SUMMON_FURY_MAGE1, true); GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SUMMON_FURY_MAGE2, true); @@ -426,12 +426,12 @@ class spell_entropius_void_zone_visual : public SpellScriptLoader { PrepareAuraScript(spell_entropius_void_zone_visual_AuraScript); - void HandleApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { SetDuration(3000); } - void HandleRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SUMMON_DARK_FIEND_ENTROPIUS, true); } diff --git a/src/scripts/EasternKingdoms/Uldaman/instance_uldaman.cpp b/src/scripts/EasternKingdoms/Uldaman/instance_uldaman.cpp index 4300109af..50660a8b8 100644 --- a/src/scripts/EasternKingdoms/Uldaman/instance_uldaman.cpp +++ b/src/scripts/EasternKingdoms/Uldaman/instance_uldaman.cpp @@ -139,7 +139,7 @@ class spell_uldaman_sub_boss_agro_keepers : public SpellScriptLoader { PrepareSpellScript(spell_uldaman_sub_boss_agro_keepers_SpellScript); - void HandleSendEvent(SpellEffIndex effIndex) + void HandleSendEvent(SpellEffIndex /*effIndex*/) { if (Creature* keeper = GetCaster()->FindNearestCreature(NPC_STONE_KEEPER, 100.0f, true)) keeper->AI()->SetData(1, 1); @@ -207,7 +207,7 @@ class spell_uldaman_boss_agro_archaedas : public SpellScriptLoader { PrepareSpellScript(spell_uldaman_boss_agro_archaedas_SpellScript); - void HandleSendEvent(SpellEffIndex effIndex) + void HandleSendEvent(SpellEffIndex /*effIndex*/) { InstanceScript* instance = GetCaster()->GetInstanceScript(); if (!instance || instance->GetData(DATA_ARCHAEDAS) == IN_PROGRESS) diff --git a/src/scripts/EasternKingdoms/zone_eastern_plaguelands.cpp b/src/scripts/EasternKingdoms/zone_eastern_plaguelands.cpp index 39980e04b..13b95c97d 100644 --- a/src/scripts/EasternKingdoms/zone_eastern_plaguelands.cpp +++ b/src/scripts/EasternKingdoms/zone_eastern_plaguelands.cpp @@ -259,7 +259,7 @@ public: me->CastSpell(me, SPELL_DEATHS_DOOR, true); } - void MovementInform(uint32 type, uint32 pointId) + void MovementInform(uint32 type, uint32 /*pointId*/) { if (type != POINT_MOTION_TYPE) return; diff --git a/src/scripts/EasternKingdoms/zone_isle_of_queldanas.cpp b/src/scripts/EasternKingdoms/zone_isle_of_queldanas.cpp index faa88510f..94f38b653 100644 --- a/src/scripts/EasternKingdoms/zone_isle_of_queldanas.cpp +++ b/src/scripts/EasternKingdoms/zone_isle_of_queldanas.cpp @@ -474,7 +474,7 @@ public: { PrepareSpellScript(spell_bh_cleanse_quel_delar_SpellScript); - void OnEffect(SpellEffIndex effIndex) + void OnEffect(SpellEffIndex /*effIndex*/) { if (Unit* caster = GetCaster()) if (Creature* c = caster->FindNearestCreature(NPC_ROMMATH, 50.0f, true)) diff --git a/src/scripts/Events/brewfest.cpp b/src/scripts/Events/brewfest.cpp index ec8fbf91c..4e16b4e75 100644 --- a/src/scripts/Events/brewfest.cpp +++ b/src/scripts/Events/brewfest.cpp @@ -167,7 +167,7 @@ public: events.ScheduleEvent(EVENT_DIREBREW_RESPAWN2, 10000); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { summons.DespawnAll(); summons.DoAction(ACTION_RELEASE_LOOT); @@ -299,7 +299,7 @@ public: } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { if (me->GetEntry() == NPC_URSULA_DIREBREW) events.ScheduleEvent(EVENT_SISTERS_BARREL, 18000); @@ -452,7 +452,7 @@ class npc_brewfest_keg_reciver : public CreatureScript return new npc_brewfest_keg_reciverAI(creature); } - bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction) + bool OnGossipSelect(Player* player, Creature* /*creature*/, uint32 /*uiSender*/, uint32 uiAction) { switch (uiAction) { @@ -549,7 +549,7 @@ class npc_brewfest_bark_trigger : public CreatureScript } } - std::string GetTextFor(uint32 entry, uint32 questId) + std::string GetTextFor(uint32 /*entry*/, uint32 questId) { std::string str = ""; switch (questId) @@ -680,7 +680,7 @@ class npc_dark_iron_attack_generator : public CreatureScript } // DARK IRON ATTACK EVENT - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void EnterCombat(Unit*) {} void SpellHit(Unit* caster, const SpellInfo* spellInfo) @@ -1047,7 +1047,7 @@ class npc_dark_iron_guzzler : public CreatureScript who->CastSpell(who, SPELL_REPORT_DEATH, true); } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (me->IsAlive() && spellInfo->Id == SPELL_PLAYER_MUG) { @@ -1093,7 +1093,7 @@ class npc_brewfest_super_brew_trigger : public CreatureScript uint32 timer; void EnterCombat(Unit*) {} - void MoveInLineOfSight(Unit* who) + void MoveInLineOfSight(Unit* /*who*/) { } diff --git a/src/scripts/Events/hallows_end.cpp b/src/scripts/Events/hallows_end.cpp index a8b46363c..84ad89bd5 100644 --- a/src/scripts/Events/hallows_end.cpp +++ b/src/scripts/Events/hallows_end.cpp @@ -333,7 +333,7 @@ class spell_hallows_end_base_fire : public SpellScriptLoader } } - void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { Unit* target = GetTarget(); target->SetObjectScale(0.5f); @@ -493,7 +493,7 @@ public: return true; } - bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) + bool OnQuestAccept(Player* /*player*/, Creature* creature, Quest const* quest) { if ((quest->GetQuestId() == QUEST_LET_THE_FIRES_COME_A || quest->GetQuestId() == QUEST_LET_THE_FIRES_COME_H) && !creature->AI()->GetData(DATA_ALLOW_START)) creature->AI()->DoAction(ACTION_START_EVENT); @@ -523,7 +523,7 @@ class npc_soh_fire_trigger : public CreatureScript me->SetDisableGravity(true); } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->Id == SPELL_START_FIRE) { @@ -584,7 +584,7 @@ class npc_hallows_end_soh : public CreatureScript std::list unitList; int32 pos; void EnterCombat(Unit*) {} - void MoveInLineOfSight(Unit* who){} + void MoveInLineOfSight(Unit* /*who*/){} void DoAction(int32 param) { @@ -739,7 +739,7 @@ class npc_hallows_end_soh : public CreatureScript } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { me->MonsterYell("So eager you are, for my blood to spill. Yet to vanquish me, 'tis my head you must kill!", LANG_UNIVERSAL, 0); me->PlayDirectSound(11969); @@ -904,7 +904,7 @@ class boss_headless_horseman : public CreatureScript uint8 phase; uint32 health; - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { summons.DespawnAll(); me->MonsterSay("This end have I reached before. What new adventure lies in store?", LANG_UNIVERSAL, 0); @@ -920,7 +920,7 @@ class boss_headless_horseman : public CreatureScript sLFGMgr->FinishDungeon(players.begin()->GetSource()->GetGroup()->GetGUID(), 285, me->FindMap()); } - void KilledUnit(Unit* who) + void KilledUnit(Unit* /*who*/) { me->MonsterYell("Your body lies beaten, battered and broken. Let my curse be your own, fate has spoken.", LANG_UNIVERSAL, 0); me->PlayDirectSound(SOUND_SLAY); @@ -940,7 +940,7 @@ class boss_headless_horseman : public CreatureScript } } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->Id == SPELL_THROW_HEAD_BACK) { @@ -985,7 +985,7 @@ class boss_headless_horseman : public CreatureScript Player* GetRhymePlayer() { return playerGUID ? ObjectAccessor::GetPlayer(*me, playerGUID) : NULL; } void EnterCombat(Unit*) { me->SetInCombatWithZone(); } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask) { @@ -1174,7 +1174,7 @@ class boss_headless_horseman_head : public CreatureScript uint32 timer; bool handled; - void SpellHitTarget(Unit* target, const SpellInfo* spellInfo) + void SpellHitTarget(Unit* /*target*/, const SpellInfo* spellInfo) { if (spellInfo->Id == SPELL_THROW_HEAD_BACK) { @@ -1311,7 +1311,7 @@ class boss_headless_horseman_pumpkin : public CreatureScript me->CastSpell(me, SPELL_PUMPKIN_VISUAL, true); } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->Id == SPELL_SPROUTING) { diff --git a/src/scripts/Events/midsummer.cpp b/src/scripts/Events/midsummer.cpp index 77ffe83dd..6f7fcec5d 100644 --- a/src/scripts/Events/midsummer.cpp +++ b/src/scripts/Events/midsummer.cpp @@ -21,7 +21,7 @@ class go_midsummer_bonfire : public GameObjectScript public: go_midsummer_bonfire() : GameObjectScript("go_midsummer_bonfire") { } - bool OnGossipSelect(Player* player, GameObject* go, uint32 /*sender*/, uint32 action) + bool OnGossipSelect(Player* player, GameObject* /*go*/, uint32 /*sender*/, uint32 /*action*/) { player->CLOSE_GOSSIP_MENU(); // we know that there is only one gossip. @@ -274,7 +274,7 @@ public: { PrepareAuraScript(spell_midsummer_ribbon_pole_AuraScript) - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { PreventDefaultAction(); if (Unit *target = GetTarget()) diff --git a/src/scripts/Events/pilgrims_bounty.cpp b/src/scripts/Events/pilgrims_bounty.cpp index fa366a282..1936a1c31 100644 --- a/src/scripts/Events/pilgrims_bounty.cpp +++ b/src/scripts/Events/pilgrims_bounty.cpp @@ -102,10 +102,10 @@ class npc_pilgrims_bounty_chair : public CreatureScript me->SetReactState(REACT_PASSIVE); } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void AttackStart(Unit*) {} - void PassengerBoarded(Unit* who, int8 seatId, bool apply) + void PassengerBoarded(Unit* who, int8 /*seatId*/, bool apply) { if (apply && who->GetTypeId() == TYPEID_PLAYER) who->ToPlayer()->SetClientControl(me, 0, true); @@ -200,7 +200,7 @@ class npc_pilgrims_bounty_chair : public CreatureScript charm->ToCreature()->AI()->DoAction(spellInfo->Id); } - void SpellHit(Unit* target, const SpellInfo* spellInfo) + void SpellHit(Unit* /*target*/, const SpellInfo* spellInfo) { switch (spellInfo->Id) { @@ -284,7 +284,7 @@ class npc_pilgrims_bounty_plate : public CreatureScript { } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { switch (spellInfo->Id) { diff --git a/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_epoch.cpp b/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_epoch.cpp index c283ccc52..eb52a0b1e 100644 --- a/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_epoch.cpp +++ b/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_epoch.cpp @@ -131,7 +131,7 @@ public: Talk(SAY_DEATH); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (!urand(0,1)) return; diff --git a/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_mal_ganis.cpp b/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_mal_ganis.cpp index f7230b143..c1e57bfbc 100644 --- a/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_mal_ganis.cpp +++ b/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_mal_ganis.cpp @@ -84,7 +84,7 @@ public: { } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (!urand(0,1)) return; diff --git a/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_meathook.cpp b/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_meathook.cpp index d2248c876..c5811914f 100644 --- a/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_meathook.cpp +++ b/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_meathook.cpp @@ -63,7 +63,7 @@ public: Talk(SAY_DEATH); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (!urand(0,1)) return; diff --git a/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_salramm.cpp b/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_salramm.cpp index 9d3e346a4..3f2186893 100644 --- a/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_salramm.cpp +++ b/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_salramm.cpp @@ -84,7 +84,7 @@ public: Talk(SAY_DEATH); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (!urand(0,1)) return; diff --git a/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/culling_of_stratholme.cpp b/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/culling_of_stratholme.cpp index e0d6e6c7f..f14765308 100644 --- a/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/culling_of_stratholme.cpp +++ b/src/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/culling_of_stratholme.cpp @@ -1409,7 +1409,7 @@ class npc_cos_chromie_start : public CreatureScript return true; } - bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/) { // final menu id, show crates if hidden and add item if missing if (player->PlayerTalkClass->GetGossipMenu().GetMenuId() == 9595) @@ -1457,7 +1457,7 @@ class npc_cos_chromie_middle : public CreatureScript return true; } - bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/) { if (!creature->GetInstanceScript() || creature->GetInstanceScript()->GetData(DATA_ARTHAS_EVENT) != COS_PROGRESS_CRATES_FOUND) return true; diff --git a/src/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/boss_captain_skarloc.cpp b/src/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/boss_captain_skarloc.cpp index 860c84a8d..cadb59d8e 100644 --- a/src/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/boss_captain_skarloc.cpp +++ b/src/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/boss_captain_skarloc.cpp @@ -134,7 +134,7 @@ public: events.ScheduleEvent(EVENT_SPELL_CONSECRATION, 1000); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { Talk(SAY_SLAY); } diff --git a/src/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/old_hillsbrad.cpp b/src/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/old_hillsbrad.cpp index 5ce3bd296..3f0acebf4 100644 --- a/src/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/old_hillsbrad.cpp +++ b/src/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/old_hillsbrad.cpp @@ -206,7 +206,7 @@ public: return true; } - bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/) { GossipMenuItemData const* gossipMenuItemData = player->PlayerTalkClass->GetGossipMenu().GetItemData(0); InstanceScript* instance = creature->GetInstanceScript(); @@ -853,7 +853,7 @@ public: return GetInstanceAI(creature); } - bool OnGossipHello(Player* player, Creature* creature) + bool OnGossipHello(Player* /*player*/, Creature* /*creature*/) { return true; } @@ -867,7 +867,7 @@ public: InstanceScript* instance; - void DoAction(int32 param) + void DoAction(int32 /*param*/) { me->SetStandState(UNIT_STAND_STATE_STAND); me->RemoveAllAuras(); diff --git a/src/scripts/Kalimdor/CavernsOfTime/TheBlackMorass/instance_the_black_morass.cpp b/src/scripts/Kalimdor/CavernsOfTime/TheBlackMorass/instance_the_black_morass.cpp index 4e0d90e1f..45ad63d27 100644 --- a/src/scripts/Kalimdor/CavernsOfTime/TheBlackMorass/instance_the_black_morass.cpp +++ b/src/scripts/Kalimdor/CavernsOfTime/TheBlackMorass/instance_the_black_morass.cpp @@ -133,7 +133,7 @@ public: } } - void SetData(uint32 type, uint32 data) + void SetData(uint32 type, uint32 /*data*/) { switch (type) { diff --git a/src/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp b/src/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp index c16d29c6c..908bec18e 100644 --- a/src/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp +++ b/src/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp @@ -193,7 +193,7 @@ public: me->GetMap()->ToInstanceMap()->PermBindAllPlayers(); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { Talk(SAY_AGGRO); DoZoneInCombat(); @@ -208,13 +208,13 @@ public: BindPlayers(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if( m_pInstance ) m_pInstance->SetData(DATA_ONYXIA, DONE); } - void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask) + void DamageTaken(Unit*, uint32 & /*damage*/, DamageEffectType, SpellSchoolMask) { switch( Phase ) { @@ -645,8 +645,8 @@ public: { npc_onyxia_triggerAI(Creature* pCreature) : ScriptedAI(pCreature) {} - void MoveInLineOfSight(Unit* who) {} - void UpdateAI(uint32 diff) {} + void MoveInLineOfSight(Unit* /*who*/) {} + void UpdateAI(uint32 /*diff*/) {} }; }; diff --git a/src/scripts/Kalimdor/OnyxiasLair/instance_onyxias_lair.cpp b/src/scripts/Kalimdor/OnyxiasLair/instance_onyxias_lair.cpp index 8452440cd..ae6cbf79f 100644 --- a/src/scripts/Kalimdor/OnyxiasLair/instance_onyxias_lair.cpp +++ b/src/scripts/Kalimdor/OnyxiasLair/instance_onyxias_lair.cpp @@ -159,7 +159,7 @@ public: OUT_LOAD_INST_DATA_COMPLETE; } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Kalimdor/ZulFarrak/instance_zulfarrak.cpp b/src/scripts/Kalimdor/ZulFarrak/instance_zulfarrak.cpp index 68a3f4aa9..88fe309af 100644 --- a/src/scripts/Kalimdor/ZulFarrak/instance_zulfarrak.cpp +++ b/src/scripts/Kalimdor/ZulFarrak/instance_zulfarrak.cpp @@ -133,7 +133,7 @@ class spell_zulfarrak_unlocking : public SpellScriptLoader { PrepareSpellScript(spell_zulfarrak_unlocking_SpellScript); - void HandleOpenLock(SpellEffIndex effIndex) + void HandleOpenLock(SpellEffIndex /*effIndex*/) { GameObject* cage = GetHitGObj(); std::list cagesList; diff --git a/src/scripts/Northrend/AzjolNerub/AzjolNerub/boss_anubarak.cpp b/src/scripts/Northrend/AzjolNerub/AzjolNerub/boss_anubarak.cpp index 8c41e6b62..b6b87be23 100644 --- a/src/scripts/Northrend/AzjolNerub/AzjolNerub/boss_anubarak.cpp +++ b/src/scripts/Northrend/AzjolNerub/AzjolNerub/boss_anubarak.cpp @@ -92,7 +92,7 @@ class boss_anub_arak : public CreatureScript BossAI::JustDied(killer); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) { @@ -237,7 +237,7 @@ class spell_azjol_nerub_carrion_beetels : public SpellScriptLoader { PrepareAuraScript(spell_azjol_nerub_carrion_beetelsAuraScript) - void HandleEffectPeriodic(AuraEffect const* aurEff) + void HandleEffectPeriodic(AuraEffect const* /*aurEff*/) { // Xinef: 2 each second GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SUMMON_CARRION_BEETLES, true); @@ -265,7 +265,7 @@ class spell_azjol_nerub_pound : public SpellScriptLoader { PrepareSpellScript(spell_azjol_nerub_pound_SpellScript); - void HandleApplyAura(SpellEffIndex effIndex) + void HandleApplyAura(SpellEffIndex /*effIndex*/) { if (Unit* unitTarget = GetHitUnit()) GetCaster()->CastSpell(unitTarget, SPELL_POUND_DAMAGE, true); diff --git a/src/scripts/Northrend/AzjolNerub/ahnkahet/boss_jedoga_shadowseeker.cpp b/src/scripts/Northrend/AzjolNerub/ahnkahet/boss_jedoga_shadowseeker.cpp index fc0fe4597..b451c6c0d 100644 --- a/src/scripts/Northrend/AzjolNerub/ahnkahet/boss_jedoga_shadowseeker.cpp +++ b/src/scripts/Northrend/AzjolNerub/ahnkahet/boss_jedoga_shadowseeker.cpp @@ -219,7 +219,7 @@ public: me->CastSpell(me, SPELL_LIGHTNING_BOLTS, true); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { if (pInstance) pInstance->SetData(DATA_JEDOGA_SHADOWSEEKER_EVENT, IN_PROGRESS); diff --git a/src/scripts/Northrend/AzjolNerub/ahnkahet/boss_prince_taldaram.cpp b/src/scripts/Northrend/AzjolNerub/ahnkahet/boss_prince_taldaram.cpp index 98c858d18..250f1702d 100644 --- a/src/scripts/Northrend/AzjolNerub/ahnkahet/boss_prince_taldaram.cpp +++ b/src/scripts/Northrend/AzjolNerub/ahnkahet/boss_prince_taldaram.cpp @@ -290,7 +290,7 @@ public: } } - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 /*type*/, uint32 id) { if (id == 0) me->DisappearAndDie(); diff --git a/src/scripts/Northrend/AzjolNerub/ahnkahet/instance_ahnkahet.cpp b/src/scripts/Northrend/AzjolNerub/ahnkahet/instance_ahnkahet.cpp index 2d3c1dc5c..cd055ce0d 100644 --- a/src/scripts/Northrend/AzjolNerub/ahnkahet/instance_ahnkahet.cpp +++ b/src/scripts/Northrend/AzjolNerub/ahnkahet/instance_ahnkahet.cpp @@ -132,7 +132,7 @@ public: return 0; } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/ChamberOfAspects/ObsidianSanctum/boss_sartharion.cpp b/src/scripts/Northrend/ChamberOfAspects/ObsidianSanctum/boss_sartharion.cpp index e88d0c1fb..07269e503 100644 --- a/src/scripts/Northrend/ChamberOfAspects/ObsidianSanctum/boss_sartharion.cpp +++ b/src/scripts/Northrend/ChamberOfAspects/ObsidianSanctum/boss_sartharion.cpp @@ -338,7 +338,7 @@ public: me->CastSpell(me, SPELL_SARTHARION_TWILIGHT_REVENGE, true); } - void EnterCombat(Unit* pWho) + void EnterCombat(Unit* /*pWho*/) { me->CastSpell(me, SPELL_SARTHARION_PYROBUFFET, true); me->SetInCombatWithZone(); @@ -358,7 +358,7 @@ public: me->CallForHelp(500.0f); } - void JustDied(Unit* pKiller) + void JustDied(Unit* /*pKiller*/) { RespawnDragons(true); summons.DespawnEntry(NPC_FLAME_TSUNAMI); @@ -942,7 +942,7 @@ public: Talk(SAY_SHADRON_SLAY); } - void SummonedCreatureDies(Creature *summon, Unit*) + void SummonedCreatureDies(Creature * /*summon*/, Unit*) { if (isSartharion && pInstance) { @@ -1172,7 +1172,7 @@ public: Talk(SAY_VESPERON_SLAY); } - void SummonedCreatureDies(Creature *summon, Unit*) + void SummonedCreatureDies(Creature * /*summon*/, Unit*) { if (!isSartharion) ClearInstance(); diff --git a/src/scripts/Northrend/ChamberOfAspects/ObsidianSanctum/instance_obsidian_sanctum.cpp b/src/scripts/Northrend/ChamberOfAspects/ObsidianSanctum/instance_obsidian_sanctum.cpp index ee44aedf8..eed9462ee 100644 --- a/src/scripts/Northrend/ChamberOfAspects/ObsidianSanctum/instance_obsidian_sanctum.cpp +++ b/src/scripts/Northrend/ChamberOfAspects/ObsidianSanctum/instance_obsidian_sanctum.cpp @@ -89,7 +89,7 @@ public: return 0; } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_baltharus_the_warborn.cpp b/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_baltharus_the_warborn.cpp index dfeb63add..7e90681e6 100644 --- a/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_baltharus_the_warborn.cpp +++ b/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_baltharus_the_warborn.cpp @@ -172,7 +172,7 @@ class boss_baltharus_the_warborn : public CreatureScript xerestrasza->AI()->DoAction(ACTION_BALTHARUS_DEATH); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) { diff --git a/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_general_zarithrian.cpp b/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_general_zarithrian.cpp index 0697332c4..c8f9b4322 100644 --- a/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_general_zarithrian.cpp +++ b/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_general_zarithrian.cpp @@ -118,7 +118,7 @@ class boss_general_zarithrian : public CreatureScript Talk(SAY_DEATH); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) { diff --git a/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp b/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp index f22639735..ea85e7f7f 100644 --- a/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp +++ b/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp @@ -441,7 +441,7 @@ class boss_twilight_halion : public CreatureScript me->SetReactState(REACT_DEFENSIVE); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { _events.Reset(); _events.ScheduleEvent(EVENT_CLEAVE, urand(8000, 10000)); @@ -861,7 +861,7 @@ class spell_halion_meteor_strike_spread : public SpellScriptLoader { PrepareAuraScript(spell_halion_meteor_strike_spread_AuraScript); - void HandlePeriodic(AuraEffect const* aurEff) + void HandlePeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); // xinef: 3/5 straight, 2/5 turn if (!GetUnitOwner()->GetInstanceScript() || !GetUnitOwner()->GetInstanceScript()->IsEncounterInProgress()) @@ -977,7 +977,7 @@ class spell_halion_marks : public SpellScriptLoader dispelledUnit->RemoveAurasDueToSpell(_removeSpellId, 0, 0, AURA_REMOVE_BY_EXPIRE); } - void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE) return; @@ -1078,7 +1078,7 @@ class spell_halion_clear_debuffs : public SpellScriptLoader { PrepareSpellScript(spell_halion_clear_debuffs_SpellScript); - void HandleScriptEffect(SpellEffIndex effIndex) + void HandleScriptEffect(SpellEffIndex /*effIndex*/) { if (Unit* target = GetHitUnit()) { @@ -1366,7 +1366,7 @@ class spell_halion_twilight_division : public SpellScriptLoader { PrepareSpellScript(spell_halion_twilight_division_SpellScript); - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { InstanceScript* instance = GetCaster()->GetInstanceScript(); Creature* controller = ObjectAccessor::GetCreature(*GetCaster(), instance->GetData64(NPC_HALION_CONTROLLER)); @@ -1412,7 +1412,7 @@ class spell_halion_twilight_mending : public SpellScriptLoader { PrepareSpellScript(spell_halion_twilight_mending_SpellScript); - void HandleHealPct(SpellEffIndex effIndex) + void HandleHealPct(SpellEffIndex /*effIndex*/) { if (Creature* target = GetHitCreature()) target->AI()->Talk(SAY_REGENERATE); diff --git a/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_saviana_ragefire.cpp b/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_saviana_ragefire.cpp index ff16d8303..3c93711b1 100644 --- a/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_saviana_ragefire.cpp +++ b/src/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_saviana_ragefire.cpp @@ -104,7 +104,7 @@ class boss_saviana_ragefire : public CreatureScript me->SetHover(false); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) { diff --git a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_argent_challenge.cpp b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_argent_challenge.cpp index b632574cf..1c935dc0a 100644 --- a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_argent_challenge.cpp +++ b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_argent_challenge.cpp @@ -113,7 +113,7 @@ public: } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.Reset(); events.ScheduleEvent(EVENT_SPELL_RADIANCE, 16000); @@ -124,7 +124,7 @@ public: pInstance->SetData(BOSS_ARGENT_CHALLENGE, IN_PROGRESS); } - void SpellHit(Unit* caster, const SpellInfo* spell) + void SpellHit(Unit* /*caster*/, const SpellInfo* spell) { if (spell->Id == 66905 && me->GetHealth() == 1) // hammer throw back damage (15k) me->CastSpell(me, 68197, true); @@ -244,7 +244,7 @@ public: } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.Reset(); events.ScheduleEvent(EVENT_SPELL_HOLY_FIRE, urand(9000,12000)); @@ -807,7 +807,7 @@ class spell_reflective_shield : public SpellScriptLoader { PrepareAuraScript(spell_reflective_shield_AuraScript) - void HandleAfterEffectAbsorb(AuraEffect * aurEff, DamageInfo & dmgInfo, uint32 & absorbAmount) + void HandleAfterEffectAbsorb(AuraEffect * /*aurEff*/, DamageInfo & dmgInfo, uint32 & absorbAmount) { if( Unit* attacker = dmgInfo.GetAttacker() ) if( GetOwner() && attacker->GetGUID() != GetOwner()->GetGUID() ) diff --git a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_black_knight.cpp b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_black_knight.cpp index d87d69848..e8033a58f 100644 --- a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_black_knight.cpp +++ b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_black_knight.cpp @@ -176,7 +176,7 @@ public: } } - void SpellHitTarget(Unit* target, const SpellInfo* spell) + void SpellHitTarget(Unit* /*target*/, const SpellInfo* spell) { switch( spell->Id ) { @@ -392,7 +392,7 @@ public: events.Reset(); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.Reset(); if (me->GetEntry() == NPC_RISEN_JAEREN || me->GetEntry() == NPC_RISEN_ARELAS) @@ -400,7 +400,7 @@ public: events.RescheduleEvent(2, urand(3000,4000)); // claw } - void SpellHit(Unit* caster, const SpellInfo* spell) + void SpellHit(Unit* /*caster*/, const SpellInfo* spell) { if (spell->Id == SPELL_BK_GHOUL_EXPLODE) { diff --git a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_grand_champions.cpp b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_grand_champions.cpp index 1c6b0fe07..2bd1f0f12 100644 --- a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_grand_champions.cpp +++ b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/boss_grand_champions.cpp @@ -169,7 +169,7 @@ public: } // just in case, should be done in spell_gen_defend - void PassengerBoarded(Unit* who, int8 seat, bool apply) + void PassengerBoarded(Unit* who, int8 /*seat*/, bool apply) { if (me->IsDuringRemoveFromWorld()) return; @@ -184,7 +184,7 @@ public: } //void EnterEvadeMode() { CreatureAI::EnterEvadeMode(); } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void UpdateAI(uint32 diff) { if (m_ConditionsTimer <= diff) @@ -198,8 +198,8 @@ public: else m_ConditionsTimer -= diff; } - void AttackStart(Unit* who) {} - void EnterCombat(Unit* who) {} + void AttackStart(Unit* /*who*/) {} + void EnterCombat(Unit* /*who*/) {} }; }; @@ -629,7 +629,7 @@ public: } } - void SpellHit(Unit* caster, const SpellInfo* spell) + void SpellHit(Unit* /*caster*/, const SpellInfo* spell) { switch( spell->Id ) { diff --git a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/instance_trial_of_the_champion.cpp b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/instance_trial_of_the_champion.cpp index 5f825256d..fdcd5d44e 100644 --- a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/instance_trial_of_the_champion.cpp +++ b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/instance_trial_of_the_champion.cpp @@ -1225,7 +1225,7 @@ public: } } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp index 61d8b14cd..8a0c1d407 100644 --- a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp +++ b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheChampion/trial_of_the_champion.cpp @@ -105,7 +105,7 @@ public: damage = me->GetHealth()-1; } - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 type, uint32 /*id*/) { if (type != EFFECT_MOTION_TYPE) return; @@ -118,7 +118,7 @@ public: Unit::Kill(me, me); // for bk scene, die after knockback } - void UpdateAI(uint32 diff) {} + void UpdateAI(uint32 /*diff*/) {} }; }; diff --git a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_anubarak_trial.cpp b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_anubarak_trial.cpp index 47f56decf..9b608b50d 100644 --- a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_anubarak_trial.cpp +++ b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_anubarak_trial.cpp @@ -509,7 +509,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { me->CastSpell(me, RAID_MODE(SPELL_TRAITOR_KING_10, SPELL_TRAITOR_KING_25, SPELL_TRAITOR_KING_10, SPELL_TRAITOR_KING_25), true); me->m_Events.AddEvent(new HideNpcEvent(*me), me->m_Events.CalculateTime(5000)); @@ -571,7 +571,7 @@ public: } } - void SpellHit(Unit* caster, const SpellInfo* spell) + void SpellHit(Unit* /*caster*/, const SpellInfo* spell) { if( spell->Id == SPELL_SPIKE_FAIL ) { @@ -710,7 +710,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { me->m_Events.AddEvent(new HideNpcEvent(*me), me->m_Events.CalculateTime(5000)); } @@ -840,7 +840,7 @@ class spell_pursuing_spikes : public SpellScriptLoader { PrepareAuraScript(spell_pursuing_spikesAuraScript) - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { if( Unit* target = GetTarget() ) { diff --git a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_faction_champions.cpp b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_faction_champions.cpp index 582d068e6..34604b7cb 100644 --- a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_faction_champions.cpp +++ b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_faction_champions.cpp @@ -57,7 +57,7 @@ struct boss_faction_championsAI : public ScriptedAI UnitAI::AttackStartCaster(who, 18.5f); } - float GetThreatMod(float dist, float armor, uint32 health, uint32 /*maxhealth*/, Unit* target) + float GetThreatMod(float dist, float /*armor*/, uint32 health, uint32 /*maxhealth*/, Unit* target) { /*float mod_health = ((float)health)/maxhealth; if (mod_health < 0.4f) mod_health = 0.4f; @@ -114,7 +114,7 @@ struct boss_faction_championsAI : public ScriptedAI pInstance->SetData(TYPE_FACTION_CHAMPIONS, DONE); } - void KilledUnit(Unit* who) + void KilledUnit(Unit* /*who*/) { if( pInstance ) pInstance->SetData(TYPE_FACTION_CHAMPIONS_PLAYER_DIED, 1); diff --git a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_lord_jaraxxus.cpp b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_lord_jaraxxus.cpp index 457791f3a..0790b0412 100644 --- a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_lord_jaraxxus.cpp +++ b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_lord_jaraxxus.cpp @@ -373,7 +373,7 @@ public: events.RescheduleEvent(EVENT_SPELL_MISTRESS_KISS, urand(10000,15000)); } - void SpellHit(Unit* caster, const SpellInfo* spell) + void SpellHit(Unit* /*caster*/, const SpellInfo* /*spell*/) { //if (caster && spell && spell->Id == 66287 /*control vehicle*/) // caster->ClearUnitState(UNIT_STATE_ONVEHICLE); @@ -434,7 +434,7 @@ public: { PrepareAuraScript(spell_toc25_mistress_kiss_AuraScript) - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { if (Unit* caster = GetCaster()) if (Unit* target = GetTarget()) diff --git a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp index 834e3c30c..a165baf6c 100644 --- a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp +++ b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp @@ -90,7 +90,7 @@ public: events.ScheduleEvent(EVENT_SPELL_FIRE_BOMB, urand(10000,30000)); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.Reset(); events.ScheduleEvent(EVENT_SPELL_SNOBOLLED, 1500); @@ -818,7 +818,7 @@ public: return false; } - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 /*type*/, uint32 id) { if( id == EVENT_CHARGE ) { diff --git a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_twin_valkyr.cpp b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_twin_valkyr.cpp index f3fcc4aeb..40fe9eebc 100644 --- a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_twin_valkyr.cpp +++ b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_twin_valkyr.cpp @@ -521,7 +521,7 @@ public: boss_twin_valkyrAI::JustSummoned(c); } - void JustSummoned(Creature* s) {} + void JustSummoned(Creature* /*s*/) {} }; }; @@ -547,7 +547,7 @@ public: boss_twin_valkyrAI::JustSummoned(c); } - void JustSummoned(Creature* s) {} + void JustSummoned(Creature* /*s*/) {} }; }; @@ -704,7 +704,7 @@ public: me->GetMotionMaster()->MovePoint(0, Locs[LOC_CENTER].GetPositionX()+cos(angle)*47.0f, Locs[LOC_CENTER].GetPositionY()+sin(angle)*47.0f, me->GetPositionZ()); } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if( despawning ) return; @@ -869,7 +869,7 @@ class spell_valkyr_ball_periodic_dummy : public SpellScriptLoader { PrepareAuraScript(spell_valkyr_ball_periodic_dummyAuraScript) - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { if (Unit* target = GetTarget()) if (target->GetDisplayId() != 11686) diff --git a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/instance_trial_of_the_crusader.cpp b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/instance_trial_of_the_crusader.cpp index 9a5d3953b..b33389173 100644 --- a/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/instance_trial_of_the_crusader.cpp +++ b/src/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/instance_trial_of_the_crusader.cpp @@ -1638,7 +1638,7 @@ public: OUT_LOAD_INST_DATA_COMPLETE; } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/DraktharonKeep/boss_novos.cpp b/src/scripts/Northrend/DraktharonKeep/boss_novos.cpp index 35b21b9a3..73b349363 100644 --- a/src/scripts/Northrend/DraktharonKeep/boss_novos.cpp +++ b/src/scripts/Northrend/DraktharonKeep/boss_novos.cpp @@ -87,7 +87,7 @@ class boss_novos : public CreatureScript _achievement = false; } - void MoveInLineOfSight(Unit* who) { } + void MoveInLineOfSight(Unit* /*who*/) { } void EnterCombat(Unit* who) { @@ -118,7 +118,7 @@ class boss_novos : public CreatureScript instance->SetBossState(DATA_NOVOS_CRYSTALS, DONE); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) { @@ -255,7 +255,7 @@ class spell_novos_crystal_handler_death : public SpellScriptLoader { PrepareAuraScript(spell_novos_crystal_handler_death_AuraScript) - void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetUnitOwner()->InterruptNonMeleeSpells(false); if (GameObject* crystal = GetUnitOwner()->FindNearestGameObjectOfType(GAMEOBJECT_TYPE_DOOR, 5.0f)) diff --git a/src/scripts/Northrend/DraktharonKeep/boss_tharon_ja.cpp b/src/scripts/Northrend/DraktharonKeep/boss_tharon_ja.cpp index ad9668fc3..5404cbf13 100644 --- a/src/scripts/Northrend/DraktharonKeep/boss_tharon_ja.cpp +++ b/src/scripts/Northrend/DraktharonKeep/boss_tharon_ja.cpp @@ -87,7 +87,7 @@ class boss_tharon_ja : public CreatureScript events.ScheduleEvent(EVENT_SPELL_TURN_FLESH, 1000); } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * /*victim*/) { if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) { @@ -233,7 +233,7 @@ class spell_tharon_ja_dummy : public SpellScriptLoader { PrepareAuraScript(spell_tharon_ja_dummy_AuraScript) - void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { PreventDefaultAction(); GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_FLESH_VISUAL, true); @@ -241,7 +241,7 @@ class spell_tharon_ja_dummy : public SpellScriptLoader GetUnitOwner()->SetDisplayId(GetUnitOwner()->GetNativeDisplayId()+1); } - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { PreventDefaultAction(); GetUnitOwner()->getThreatManager().resetAllAggro(); diff --git a/src/scripts/Northrend/DraktharonKeep/boss_trollgore.cpp b/src/scripts/Northrend/DraktharonKeep/boss_trollgore.cpp index 0bcfa1537..acf0964d5 100644 --- a/src/scripts/Northrend/DraktharonKeep/boss_trollgore.cpp +++ b/src/scripts/Northrend/DraktharonKeep/boss_trollgore.cpp @@ -82,7 +82,7 @@ class boss_trollgore : public CreatureScript BossAI::JustDied(killer); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) { diff --git a/src/scripts/Northrend/DraktharonKeep/instance_drak_tharon_keep.cpp b/src/scripts/Northrend/DraktharonKeep/instance_drak_tharon_keep.cpp index 791944d3e..0d971c5d7 100644 --- a/src/scripts/Northrend/DraktharonKeep/instance_drak_tharon_keep.cpp +++ b/src/scripts/Northrend/DraktharonKeep/instance_drak_tharon_keep.cpp @@ -103,7 +103,7 @@ class spell_dtk_raise_dead : public SpellScriptLoader return GetUnitOwner()->GetTypeId() == TYPEID_UNIT; } - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetUnitOwner()->ToCreature()->DespawnOrUnsummon(1); GetUnitOwner()->SummonCreature(NPC_RISEN_DRAKKARI_WARRIOR, *GetUnitOwner()); diff --git a/src/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_bronjahm.cpp b/src/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_bronjahm.cpp index 2bef11694..8852bff0e 100644 --- a/src/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_bronjahm.cpp +++ b/src/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_bronjahm.cpp @@ -105,7 +105,7 @@ public: } } - void SpellHitTarget(Unit* target, const SpellInfo* spell) + void SpellHitTarget(Unit* /*target*/, const SpellInfo* spell) { if (spell->Id == SPELL_TELEPORT) { diff --git a/src/scripts/Northrend/FrozenHalls/ForgeOfSouls/instance_forge_of_souls.cpp b/src/scripts/Northrend/FrozenHalls/ForgeOfSouls/instance_forge_of_souls.cpp index e775c3b68..7bc88051d 100644 --- a/src/scripts/Northrend/FrozenHalls/ForgeOfSouls/instance_forge_of_souls.cpp +++ b/src/scripts/Northrend/FrozenHalls/ForgeOfSouls/instance_forge_of_souls.cpp @@ -160,7 +160,7 @@ public: return 0; } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/FrozenHalls/HallsOfReflection/boss_marwyn.cpp b/src/scripts/Northrend/FrozenHalls/HallsOfReflection/boss_marwyn.cpp index 3c474ca5d..bfc4f797b 100644 --- a/src/scripts/Northrend/FrozenHalls/HallsOfReflection/boss_marwyn.cpp +++ b/src/scripts/Northrend/FrozenHalls/HallsOfReflection/boss_marwyn.cpp @@ -164,7 +164,7 @@ public: { PrepareAuraScript(spell_hor_shared_sufferingAuraScript); - void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes mode) + void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) { if (GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_ENEMY_SPELL) // dispelled if (Unit* caster = GetCaster()) diff --git a/src/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp b/src/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp index f5214a4f9..4e4ab4be6 100644 --- a/src/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp +++ b/src/scripts/Northrend/FrozenHalls/HallsOfReflection/halls_of_reflection.cpp @@ -1395,7 +1395,7 @@ public: } } - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 type, uint32 /*id*/) { // Xinef: dont use 0, it is no longer the last point // Xinef: if type is escort and spline is finalized, it means that we reached last point from the path @@ -1598,7 +1598,7 @@ class npc_hor_leader_second : public CreatureScript public: npc_hor_leader_second() : CreatureScript("npc_hor_leader_second") { } - bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 /*uiAction*/) { if (!creature->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP)) return true; @@ -1675,7 +1675,7 @@ public: me->GetMotionMaster()->MoveSplinePath(&path); } - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 type, uint32 /*id*/) { if (type == ESCORT_MOTION_TYPE && me->movespline->Finalized()) events.ScheduleEvent(EVENT_SAY_LEADER_STOP_TEXT, 1000); @@ -1792,7 +1792,7 @@ public: leaped = false; } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!UpdateVictim()) return; @@ -1969,7 +1969,7 @@ public: { PrepareAuraScript(spell_hor_gunship_cannon_fireAuraScript) - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { PreventDefaultAction(); if (Unit* caster = GetCaster()) diff --git a/src/scripts/Northrend/FrozenHalls/PitOfSaron/boss_forgemaster_garfrost.cpp b/src/scripts/Northrend/FrozenHalls/PitOfSaron/boss_forgemaster_garfrost.cpp index d33d4e4d2..55b6f7178 100644 --- a/src/scripts/Northrend/FrozenHalls/PitOfSaron/boss_forgemaster_garfrost.cpp +++ b/src/scripts/Northrend/FrozenHalls/PitOfSaron/boss_forgemaster_garfrost.cpp @@ -90,7 +90,7 @@ public: pInstance->SetData(DATA_GARFROST, NOT_STARTED); } - void SetData(uint32 id, uint32 data) + void SetData(uint32 id, uint32 /*data*/) { if (id == 1 && pInstance) pInstance->SetData(DATA_ACHIEV_ELEVEN, 0); @@ -156,7 +156,7 @@ public: } } - void SpellHitTarget(Unit* target, const SpellInfo* spell) + void SpellHitTarget(Unit* /*target*/, const SpellInfo* spell) { if (spell->Id == uint32(SPELL_SARONITE_TRIGGERED)) { diff --git a/src/scripts/Northrend/FrozenHalls/PitOfSaron/boss_krickandick.cpp b/src/scripts/Northrend/FrozenHalls/PitOfSaron/boss_krickandick.cpp index 25a4c3dad..84121bfbe 100644 --- a/src/scripts/Northrend/FrozenHalls/PitOfSaron/boss_krickandick.cpp +++ b/src/scripts/Northrend/FrozenHalls/PitOfSaron/boss_krickandick.cpp @@ -80,7 +80,7 @@ public: pInstance->SetData(DATA_ICK, NOT_STARTED); } - bool CanAIAttack(const Unit* who) const + bool CanAIAttack(const Unit* /*who*/) const { return pInstance && pInstance->GetData(DATA_INSTANCE_PROGRESS) >= INSTANCE_PROGRESS_FINISHED_INTRO; } @@ -260,7 +260,7 @@ public: k->AI()->Talk(RAND(SAY_SLAY_1, SAY_SLAY_2)); } - void JustSummoned(Creature* summon) + void JustSummoned(Creature* /*summon*/) { } }; diff --git a/src/scripts/Northrend/FrozenHalls/PitOfSaron/instance_pit_of_saron.cpp b/src/scripts/Northrend/FrozenHalls/PitOfSaron/instance_pit_of_saron.cpp index 038ecd110..d356efb21 100644 --- a/src/scripts/Northrend/FrozenHalls/PitOfSaron/instance_pit_of_saron.cpp +++ b/src/scripts/Northrend/FrozenHalls/PitOfSaron/instance_pit_of_saron.cpp @@ -74,7 +74,7 @@ public: return false; } - void OnPlayerEnter(Player* plr) + void OnPlayerEnter(Player* /*plr*/) { instance->LoadGrid(LeaderIntroPos.GetPositionX(), LeaderIntroPos.GetPositionY()); if (Creature* c = instance->GetCreature(GetData64(DATA_LEADER_FIRST_GUID))) @@ -372,7 +372,7 @@ public: return 0; } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/FrozenHalls/PitOfSaron/pit_of_saron.cpp b/src/scripts/Northrend/FrozenHalls/PitOfSaron/pit_of_saron.cpp index b72aea5b8..a9b806a64 100644 --- a/src/scripts/Northrend/FrozenHalls/PitOfSaron/pit_of_saron.cpp +++ b/src/scripts/Northrend/FrozenHalls/PitOfSaron/pit_of_saron.cpp @@ -46,7 +46,7 @@ public: } } - void SetData(uint32 type, uint32 val) + void SetData(uint32 type, uint32 /*val*/) { if (type == DATA_START_INTRO && pInstance->GetData(DATA_INSTANCE_PROGRESS) == INSTANCE_PROGRESS_NONE && counter == 0 && !me->IsVisible()) { @@ -358,8 +358,8 @@ public: summons.Despawn(s); } - void AttackStart(Unit* who) {} - void MoveInLineOfSight(Unit* who) {} + void AttackStart(Unit* /*who*/) {} + void MoveInLineOfSight(Unit* /*who*/) {} }; CreatureAI *GetAI(Creature* creature) const @@ -467,7 +467,7 @@ public: DoMeleeAttackIfReady(); } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} }; CreatureAI *GetAI(Creature* creature) const @@ -1335,7 +1335,7 @@ public: { PrepareAuraScript(spell_pos_empowered_blizzardAuraScript) - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { PreventDefaultAction(); if (Unit* caster = GetCaster()) diff --git a/src/scripts/Northrend/Gundrak/boss_drakkari_colossus.cpp b/src/scripts/Northrend/Gundrak/boss_drakkari_colossus.cpp index 886d3a43e..f0a8149a2 100644 --- a/src/scripts/Northrend/Gundrak/boss_drakkari_colossus.cpp +++ b/src/scripts/Northrend/Gundrak/boss_drakkari_colossus.cpp @@ -91,7 +91,7 @@ class boss_drakkari_colossus : public CreatureScript { } - void MoveInLineOfSight(Unit* who) + void MoveInLineOfSight(Unit* /*who*/) { } @@ -172,7 +172,7 @@ class boss_drakkari_colossus : public CreatureScript } } - void DamageTaken(Unit* attacker, uint32& damage, DamageEffectType, SpellSchoolMask) + void DamageTaken(Unit* /*attacker*/, uint32& damage, DamageEffectType, SpellSchoolMask) { if (damage >= me->GetHealth()) damage = 0; diff --git a/src/scripts/Northrend/Gundrak/boss_gal_darah.cpp b/src/scripts/Northrend/Gundrak/boss_gal_darah.cpp index 46eacd28f..9ec01e424 100644 --- a/src/scripts/Northrend/Gundrak/boss_gal_darah.cpp +++ b/src/scripts/Northrend/Gundrak/boss_gal_darah.cpp @@ -120,7 +120,7 @@ class boss_gal_darah : public CreatureScript summon->DespawnOrUnsummon(despawnTime); } - uint32 GetData(uint32 type) const + uint32 GetData(uint32 /*type*/) const { return impaledList.size(); } diff --git a/src/scripts/Northrend/Gundrak/boss_moorabi.cpp b/src/scripts/Northrend/Gundrak/boss_moorabi.cpp index 94d9c02b3..9a328ae63 100644 --- a/src/scripts/Northrend/Gundrak/boss_moorabi.cpp +++ b/src/scripts/Northrend/Gundrak/boss_moorabi.cpp @@ -80,7 +80,7 @@ class boss_moorabi : public CreatureScript events.ScheduleEvent(EVENT_TRANSFORMATION, 12000); } - void SpellHitTarget(Unit* caster, const SpellInfo* spellInfo) + void SpellHitTarget(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->Id == SPELL_TRANSFORMATION) { @@ -164,7 +164,7 @@ class spell_moorabi_mojo_frenzy : public SpellScriptLoader { PrepareAuraScript(spell_moorabi_mojo_frenzy_AuraScript); - void HandlePeriodic(AuraEffect const* aurEff) + void HandlePeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); diff --git a/src/scripts/Northrend/Gundrak/boss_slad_ran.cpp b/src/scripts/Northrend/Gundrak/boss_slad_ran.cpp index 657476b45..75df7449d 100644 --- a/src/scripts/Northrend/Gundrak/boss_slad_ran.cpp +++ b/src/scripts/Northrend/Gundrak/boss_slad_ran.cpp @@ -194,7 +194,7 @@ class spell_sladran_grip_of_sladran : public SpellScriptLoader { PrepareAuraScript(spell_sladran_grip_of_sladran_AuraScript); - void HandlePeriodic(AuraEffect const* aurEff) + void HandlePeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); if (GetStackAmount() >= 5) diff --git a/src/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp b/src/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp index aac878827..4cea79ea3 100644 --- a/src/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp +++ b/src/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp @@ -326,7 +326,7 @@ class boss_prince_keleseth_icc : public CreatureScript } } - void DamageDealt(Unit* target, uint32& damage, DamageEffectType damageType) + void DamageDealt(Unit* target, uint32& damage, DamageEffectType /*damageType*/) { if (target->GetTypeId() != TYPEID_PLAYER) return; @@ -593,7 +593,7 @@ class boss_prince_taldaram_icc : public CreatureScript } } - void DamageDealt(Unit* target, uint32& damage, DamageEffectType damageType) + void DamageDealt(Unit* target, uint32& damage, DamageEffectType /*damageType*/) { if (target->GetTypeId() != TYPEID_PLAYER) return; @@ -884,7 +884,7 @@ class boss_prince_valanar_icc : public CreatureScript } } - void DamageDealt(Unit* target, uint32& damage, DamageEffectType damageType) + void DamageDealt(Unit* target, uint32& damage, DamageEffectType /*damageType*/) { if (target->GetTypeId() != TYPEID_PLAYER) return; @@ -1235,7 +1235,7 @@ class npc_ball_of_flame : public CreatureScript void MoveInLineOfSight(Unit* /*who*/) {} - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 type, uint32 /*id*/) { if (type == CHASE_MOTION_TYPE && !_exploded) { @@ -1283,7 +1283,7 @@ class npc_ball_of_flame : public CreatureScript me->DespawnOrUnsummon(1); } - void DamageDealt(Unit* target, uint32& damage, DamageEffectType damageType) + void DamageDealt(Unit* target, uint32& damage, DamageEffectType /*damageType*/) { if (target->GetTypeId() != TYPEID_PLAYER) return; diff --git a/src/scripts/Northrend/IcecrownCitadel/boss_blood_queen_lana_thel.cpp b/src/scripts/Northrend/IcecrownCitadel/boss_blood_queen_lana_thel.cpp index 026e50485..1c0c120ae 100644 --- a/src/scripts/Northrend/IcecrownCitadel/boss_blood_queen_lana_thel.cpp +++ b/src/scripts/Northrend/IcecrownCitadel/boss_blood_queen_lana_thel.cpp @@ -186,7 +186,7 @@ class boss_blood_queen_lana_thel : public CreatureScript _creditBloodQuickening = instance->GetData(DATA_BLOOD_QUICKENING_STATE) == IN_PROGRESS; } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { _JustDied(); Talk(SAY_DEATH); @@ -565,7 +565,7 @@ class boss_blood_queen_lana_thel : public CreatureScript BossAI::EnterEvadeMode(); } - bool CanAIAttack(const Unit* target) const + bool CanAIAttack(const Unit* /*target*/) const { return me->IsVisible(); } diff --git a/src/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp b/src/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp index 58abaa002..079da1aff 100644 --- a/src/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp +++ b/src/scripts/Northrend/IcecrownCitadel/boss_deathbringer_saurfang.cpp @@ -303,7 +303,7 @@ class boss_deathbringer_saurfang : public CreatureScript creature->AI()->DoAction(ACTION_START_OUTRO); } - bool CanAIAttack(const Unit* target) const + bool CanAIAttack(const Unit* /*target*/) const { return _introDone; } @@ -367,7 +367,7 @@ class boss_deathbringer_saurfang : public CreatureScript instance->HandleGameObject(instance->GetData64(GO_SAURFANG_S_DOOR), false); } - void SpellHitTarget(Unit* target, SpellInfo const* spell) + void SpellHitTarget(Unit* /*target*/, SpellInfo const* spell) { switch (spell->Id) { @@ -1051,7 +1051,7 @@ class spell_deathbringer_blood_link_aura : public SpellScriptLoader return eventInfo.GetActor() && eventInfo.GetActionTarget() && (eventInfo.GetDamageInfo()->GetDamage() || eventInfo.GetHitMask() & PROC_EX_ABSORB) && procSpell && procSpell->SpellIconID != 2731; // Xinef: Mark of the Fallen Champion } - void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) + void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& eventInfo) { PreventDefaultAction(); Unit* victim = eventInfo.GetActionTarget(); @@ -1102,7 +1102,7 @@ class spell_deathbringer_blood_link_blood_beast_aura : public SpellScriptLoader return eventInfo.GetActor() && eventInfo.GetActionTarget() && (eventInfo.GetDamageInfo()->GetDamage() || eventInfo.GetHitMask() & PROC_EX_ABSORB) && (!procSpell || procSpell->SpellIconID != 2731); // Xinef: Mark of the Fallen Champion } - void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) + void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& eventInfo) { PreventDefaultAction(); diff --git a/src/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp b/src/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp index b9f519bbe..c28ca4096 100644 --- a/src/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp +++ b/src/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp @@ -1639,7 +1639,7 @@ class npc_gunship_boarding_leader : public CreatureScript { } - void EnterCombat(Unit* target) + void EnterCombat(Unit* /*target*/) { _events.Reset(); _events.ScheduleEvent(EVENT_BLADESTORM, urand(13000, 18000)); @@ -1787,7 +1787,7 @@ class npc_gunship_mage : public CreatureScript gunship_npc_AI::UpdateAI(diff); } - bool CanAIAttack(const Unit* target) const + bool CanAIAttack(const Unit* /*target*/) const { return Instance->GetBossState(DATA_ICECROWN_GUNSHIP_BATTLE) == IN_PROGRESS; } @@ -1916,7 +1916,7 @@ class npc_gunship_rocketeer : public CreatureScript me->_AddCreatureSpellCooldown(spellId, 9000); } - bool CanAIAttack(const Unit* target) const + bool CanAIAttack(const Unit* /*target*/) const { return Instance->GetBossState(DATA_ICECROWN_GUNSHIP_BATTLE) == IN_PROGRESS; } diff --git a/src/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp b/src/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp index 816f44390..9d60cbdb7 100644 --- a/src/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp +++ b/src/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp @@ -704,7 +704,7 @@ public: } } - void EnterCombat(Unit* who) { DoZoneInCombat(); } + void EnterCombat(Unit* /*who*/) { DoZoneInCombat(); } void UpdateAI(uint32 diff) { @@ -800,7 +800,7 @@ public: } } - void EnterCombat(Unit* who) { DoZoneInCombat(); } + void EnterCombat(Unit* /*who*/) { DoZoneInCombat(); } void UpdateAI(uint32 diff) { @@ -938,7 +938,7 @@ public: DoMeleeAttackIfReady(); } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void EnterEvadeMode() {} }; diff --git a/src/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp b/src/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp index c42d2d9ac..d2399f035 100644 --- a/src/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp +++ b/src/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp @@ -486,7 +486,7 @@ public: targets.push_back(target); } - void HandleScriptEffect(SpellEffIndex effIndex) + void HandleScriptEffect(SpellEffIndex /*effIndex*/) { Unit* caster = GetCaster(); float angle = caster->GetAngle(GetHitUnit()); diff --git a/src/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp b/src/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp index 630abbe68..ec64a7a0f 100644 --- a/src/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp +++ b/src/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp @@ -380,7 +380,7 @@ class boss_professor_putricide : public CreatureScript summon->SetInCombatWithZone(); } - void DamageTaken(Unit*, uint32& /*damage*/, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask) + void DamageTaken(Unit*, uint32& /*damage*/, DamageEffectType /*damagetype*/, SpellSchoolMask /*damageSchoolMask*/) { if (bChangePhase) return; @@ -877,7 +877,7 @@ class spell_putricide_slime_puddle : public SpellScriptLoader } // big hax to unlock Abomination Eat Ooze ability, requires caster aura spell from difficulty X, but unlocks clientside when got base aura - void HandleScript(SpellEffIndex effIndex) + void HandleScript(SpellEffIndex /*effIndex*/) { const SpellInfo* s1 = sSpellMgr->GetSpellInfo(70346); const SpellInfo* s2 = sSpellMgr->GetSpellInfo(72456); @@ -943,7 +943,7 @@ class spell_putricide_grow_stacker : public SpellScriptLoader { PrepareAuraScript(spell_putricide_grow_stacker_AuraScript); - void HandleTriggerSpell(AuraEffect const* aurEff) + void HandleTriggerSpell(AuraEffect const* /*aurEff*/) { if (Unit* target = GetTarget()) if (target->HasAura(SPELL_TEAR_GAS_CREATURE)) diff --git a/src/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp b/src/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp index 464c2be67..3932c2b56 100644 --- a/src/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp +++ b/src/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp @@ -1331,7 +1331,7 @@ class spell_sindragosa_soul_preservation : public SpellScriptLoader { PrepareAuraScript(spell_sindragosa_soul_preservation_AuraScript); - void PeriodicTick(AuraEffect const* aurEff) + void PeriodicTick(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); if (Unit* s = GetTarget()) diff --git a/src/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp b/src/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp index f97fed1fc..72d5446b0 100644 --- a/src/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp +++ b/src/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp @@ -2505,9 +2505,9 @@ class npc_valkyr_shadowguard : public CreatureScript _events.ScheduleEvent(EVENT_MOVE_TO_SIPHON_POS, 0); } - void OnCharmed(bool apply) {} + void OnCharmed(bool /*apply*/) {} - void PassengerBoarded(Unit* pass, int8 seat, bool apply) + void PassengerBoarded(Unit* pass, int8 /*seat*/, bool apply) { if (apply) { @@ -2723,7 +2723,7 @@ class spell_the_lich_king_teleport_to_frostmourne_hc : public SpellScriptLoader { PrepareSpellScript(spell_the_lich_king_teleport_to_frostmourne_hc_SpellScript); - void ModDest(SpellEffIndex effIndex) + void ModDest(SpellEffIndex /*effIndex*/) { float dist = 2.0f + rand_norm()*18.0f; float angle = rand_norm()*2*M_PI; @@ -3109,8 +3109,8 @@ class npc_strangulate_vehicle : public CreatureScript } bool IsHeroic() { return me->GetMap()->IsHeroic(); } - void OnCharmed(bool apply) {} - void PassengerBoarded(Unit* pass, int8 seat, bool apply) + void OnCharmed(bool /*apply*/) {} + void PassengerBoarded(Unit* pass, int8 /*seat*/, bool apply) { if (!apply) pass->RemoveAurasDueToSpell(VEHICLE_SPELL_PARACHUTE); diff --git a/src/scripts/Northrend/IcecrownCitadel/boss_valithria_dreamwalker.cpp b/src/scripts/Northrend/IcecrownCitadel/boss_valithria_dreamwalker.cpp index 41565b137..f85c00f29 100644 --- a/src/scripts/Northrend/IcecrownCitadel/boss_valithria_dreamwalker.cpp +++ b/src/scripts/Northrend/IcecrownCitadel/boss_valithria_dreamwalker.cpp @@ -963,7 +963,7 @@ class npc_suppresser : public CreatureScript AttackStart(valithria); } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!UpdateVictim()) return; @@ -1454,7 +1454,7 @@ class spell_valithria_suppression : public SpellScriptLoader } } - void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes mode) + void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { Unit* target = GetTarget(); Unit::AuraApplicationMap &aam = target->GetAppliedAuras(); diff --git a/src/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp b/src/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp index 5ef09649b..5e2a882b9 100644 --- a/src/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp +++ b/src/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp @@ -860,7 +860,7 @@ class npc_crok_scourgebane : public CreatureScript } } - void UpdateEscortAI(uint32 diff) {} + void UpdateEscortAI(uint32 /*diff*/) {} void UpdateAI(uint32 diff) { @@ -2075,7 +2075,7 @@ class spell_frost_giant_death_plague : public SpellScriptLoader } } - void HandleScript(SpellEffIndex effIndex) + void HandleScript(SpellEffIndex /*effIndex*/) { if (!GetHitUnit()->HasAura(SPELL_RECENTLY_INFECTED) && !GetHitUnit()->HasAura(SPELL_DEATH_PLAGUE_AURA)) GetHitUnit()->CastSpell(GetHitUnit(), SPELL_DEATH_PLAGUE_AURA, true); @@ -2431,7 +2431,7 @@ public: { PrepareAuraScript(spell_icc_yf_frozen_orb_AuraScript) - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { PreventDefaultAction(); if (Unit* c = GetCaster()) @@ -2554,7 +2554,7 @@ public: void Reset() { events.Reset(); } void AttackStart(Unit* who) { AttackStartCaster(who, 20.0f); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.Reset(); events.ScheduleEvent(1, urand(5000,15000)); @@ -2621,7 +2621,7 @@ public: void Reset() { events.Reset(); } void AttackStart(Unit* who) { AttackStartCaster(who, 20.0f); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.Reset(); events.ScheduleEvent(1, urand(5000,10000)); @@ -2675,7 +2675,7 @@ public: void Reset() { events.Reset(); } void AttackStart(Unit* who) { AttackStartCaster(who, 20.0f); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.Reset(); events.ScheduleEvent(1, urand(5000,15000)); @@ -2736,7 +2736,7 @@ public: void Reset() { events.Reset(); } void AttackStart(Unit* who) { AttackStartCaster(who, 20.0f); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.Reset(); events.ScheduleEvent(1, urand(5000,15000)); @@ -3273,7 +3273,7 @@ class npc_icc_buff_switcher : public CreatureScript public: npc_icc_buff_switcher() : CreatureScript("npc_icc_buff_switcher") { } - bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/) { if ((creature->GetEntry() == NPC_GARROSH_HELLSCREAM && player->PlayerTalkClass->GetGossipMenu().GetMenuId() == 11206) || (creature->GetEntry() == NPC_KING_VARIAN_WRYNN && player->PlayerTalkClass->GetGossipMenu().GetMenuId() == 11204)) { @@ -3371,7 +3371,7 @@ public: } } - bool CanAIAttack(const Unit* target) const + bool CanAIAttack(const Unit* /*target*/) const { return !me->HasUnitMovementFlag(MOVEMENTFLAG_CAN_FLY); } diff --git a/src/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp b/src/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp index 7d16bff49..d1adf13cd 100644 --- a/src/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp +++ b/src/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp @@ -218,7 +218,7 @@ class instance_icecrown_citadel : public InstanceMapScript data << uint32(WORLDSTATE_ATTEMPTS_MAX) << uint32(MaxHeroicAttempts); } - void OnPlayerAreaUpdate(Player* player, uint32 oldArea, uint32 newArea) + void OnPlayerAreaUpdate(Player* player, uint32 /*oldArea*/, uint32 newArea) { if (newArea == 4890 /*Putricide's Laboratory of Alchemical Horrors and Fun*/ || newArea == 4891 /*The Sanctum of Blood*/ || @@ -1387,7 +1387,7 @@ class instance_icecrown_citadel : public InstanceMapScript return false; } - bool CheckRequiredBosses(uint32 bossId, Player const* player = NULL) const + bool CheckRequiredBosses(uint32 bossId, Player const* /*player*/) const { switch (bossId) { diff --git a/src/scripts/Northrend/Naxxramas/boss_anubrekhan.cpp b/src/scripts/Northrend/Naxxramas/boss_anubrekhan.cpp index 59a9fc007..1b8f6de3e 100644 --- a/src/scripts/Northrend/Naxxramas/boss_anubrekhan.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_anubrekhan.cpp @@ -107,7 +107,7 @@ public: void SummonedCreatureDespawn(Creature* cr) { summons.Despawn(cr); } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { summons.DespawnAll(); if (pInstance) @@ -132,7 +132,7 @@ public: pInstance->SetData(DATA_IMMORTAL_FAIL, 0); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { me->CallForHelp(30.0f); // catch helpers Talk(SAY_AGGRO); diff --git a/src/scripts/Northrend/Naxxramas/boss_faerlina.cpp b/src/scripts/Northrend/Naxxramas/boss_faerlina.cpp index c41f12cd4..65545bba6 100644 --- a/src/scripts/Northrend/Naxxramas/boss_faerlina.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_faerlina.cpp @@ -88,7 +88,7 @@ public: pInstance->SetData(EVENT_FAERLINA, NOT_STARTED); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { me->SetInCombatWithZone(); Talk(SAY_AGGRO); @@ -124,7 +124,7 @@ public: pInstance->SetData(DATA_IMMORTAL_FAIL, 0); } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { Talk(SAY_DEATH); if (pInstance) @@ -162,7 +162,7 @@ public: DoMeleeAttackIfReady(); } - void SpellHit(Unit* caster, const SpellInfo *spell) + void SpellHit(Unit* /*caster*/, const SpellInfo *spell) { if (spell->Id == SPELL_WIDOWS_EMBRACE) { diff --git a/src/scripts/Northrend/Naxxramas/boss_four_horsemen.cpp b/src/scripts/Northrend/Naxxramas/boss_four_horsemen.cpp index 5374405cf..36c8b2997 100644 --- a/src/scripts/Northrend/Naxxramas/boss_four_horsemen.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_four_horsemen.cpp @@ -248,7 +248,7 @@ public: pInstance->SetData(DATA_IMMORTAL_FAIL, 0); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if (pInstance) { @@ -262,7 +262,7 @@ public: Talk(SAY_DEATH); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { if (pInstance) pInstance->SetData(EVENT_HORSEMAN, IN_PROGRESS); diff --git a/src/scripts/Northrend/Naxxramas/boss_gluth.cpp b/src/scripts/Northrend/Naxxramas/boss_gluth.cpp index 5003e8ae6..5a39e88fe 100644 --- a/src/scripts/Northrend/Naxxramas/boss_gluth.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_gluth.cpp @@ -87,7 +87,7 @@ public: ScriptedAI::MoveInLineOfSight(who); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { me->SetInCombatWithZone(); events.ScheduleEvent(EVENT_SPELL_MORTAL_WOUND, 10000); diff --git a/src/scripts/Northrend/Naxxramas/boss_gothik.cpp b/src/scripts/Northrend/Naxxramas/boss_gothik.cpp index 3e75fd4d9..10330f28a 100644 --- a/src/scripts/Northrend/Naxxramas/boss_gothik.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_gothik.cpp @@ -182,7 +182,7 @@ public: } } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { me->SetInCombatWithZone(); Talk(SAY_SPEECH); @@ -225,7 +225,7 @@ public: pInstance->SetData(DATA_IMMORTAL_FAIL, 0); } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { Talk(SAY_DEATH); summons.DespawnAll(); @@ -293,7 +293,7 @@ public: return false; } - void SpellHit(Unit *caster, const SpellInfo* spellInfo) + void SpellHit(Unit * /*caster*/, const SpellInfo* spellInfo) { uint8 pos = urand(0,4); switch (spellInfo->Id) @@ -438,7 +438,7 @@ public: bool CanAIAttack(Unit const* target) const { return gateOpened || IsOnSameSide(target); } void Reset() { events.Reset(); } - void EnterCombat(Unit* who) { me->SetInCombatWithZone(); } + void EnterCombat(Unit* /*who*/) { me->SetInCombatWithZone(); } void DamageTaken(Unit* attacker, uint32 &damage, DamageEffectType, SpellSchoolMask) { if (!attacker || (!gateOpened && !IsOnSameSide(attacker))) diff --git a/src/scripts/Northrend/Naxxramas/boss_grobbulus.cpp b/src/scripts/Northrend/Naxxramas/boss_grobbulus.cpp index 9e98047f4..e0ab0e9a5 100644 --- a/src/scripts/Northrend/Naxxramas/boss_grobbulus.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_grobbulus.cpp @@ -67,7 +67,7 @@ public: pInstance->SetData(EVENT_GROBBULUS, NOT_STARTED); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { me->SetInCombatWithZone(); events.ScheduleEvent(EVENT_SPELL_POISON_CLOUD, 15000); diff --git a/src/scripts/Northrend/Naxxramas/boss_heigan.cpp b/src/scripts/Northrend/Naxxramas/boss_heigan.cpp index 63e419960..1c7461c92 100644 --- a/src/scripts/Northrend/Naxxramas/boss_heigan.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_heigan.cpp @@ -88,14 +88,14 @@ public: pInstance->SetData(DATA_IMMORTAL_FAIL, 0); } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { Talk(SAY_DEATH); if (pInstance) pInstance->SetData(EVENT_HEIGAN, DONE); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { me->SetInCombatWithZone(); Talk(SAY_AGGRO); diff --git a/src/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp b/src/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp index 2c8df2146..0e9f2148f 100644 --- a/src/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_kelthuzad.cpp @@ -198,7 +198,7 @@ public: pInstance->SetData(DATA_IMMORTAL_FAIL, 0); } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { summons.DespawnAll(); Talk(SAY_DEATH); @@ -212,7 +212,7 @@ public: AttackStart(who); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { Talk(SAY_SUMMON_MINIONS); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_DISABLE_MOVE); @@ -481,7 +481,7 @@ public: me->AddThreat(who, 1000000.0f); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { me->SetInCombatWithZone(); if (me->GetEntry() == NPC_UNSTOPPABLE_ABOMINATION) diff --git a/src/scripts/Northrend/Naxxramas/boss_loatheb.cpp b/src/scripts/Northrend/Naxxramas/boss_loatheb.cpp index 6046baf43..dca14d834 100644 --- a/src/scripts/Northrend/Naxxramas/boss_loatheb.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_loatheb.cpp @@ -65,7 +65,7 @@ public: void JustSummoned(Creature* cr) { cr->SetInCombatWithZone(); } - void SummonedCreatureDies(Creature* cr, Unit*) + void SummonedCreatureDies(Creature* /*cr*/, Unit*) { if (pInstance) pInstance->SetData(DATA_SPORE_KILLED, 0); @@ -77,7 +77,7 @@ public: pInstance->SetData(DATA_IMMORTAL_FAIL, 0); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { if (pInstance) { @@ -93,7 +93,7 @@ public: events.ScheduleEvent(EVENT_SPELL_BERSERK, 720000); } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { if (pInstance) pInstance->SetData(EVENT_LOATHEB, DONE); diff --git a/src/scripts/Northrend/Naxxramas/boss_maexxna.cpp b/src/scripts/Northrend/Naxxramas/boss_maexxna.cpp index 1596c097b..ad9515e9d 100644 --- a/src/scripts/Northrend/Naxxramas/boss_maexxna.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_maexxna.cpp @@ -89,7 +89,7 @@ public: } } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { me->SetInCombatWithZone(); events.ScheduleEvent(EVENT_WEB_WRAP, 20000); @@ -107,7 +107,7 @@ public: } } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { if (pInstance) pInstance->SetData(EVENT_MAEXXNA, DONE); @@ -213,7 +213,7 @@ public: boss_maexxna_webwrapAI(Creature *c) : NullCreatureAI(c), victimGUID(0) {} uint64 victimGUID; - void SetGUID(uint64 guid, int32 param) + void SetGUID(uint64 guid, int32 /*param*/) { victimGUID = guid; if (me->m_spells[0] && victimGUID) @@ -221,7 +221,7 @@ public: victim->CastSpell(victim, me->m_spells[0], true, NULL, NULL, me->GetGUID()); } - void JustDied(Unit *killer) + void JustDied(Unit * /*killer*/) { if (me->m_spells[0] && victimGUID) if (Unit *victim = ObjectAccessor::GetUnit(*me, victimGUID)) diff --git a/src/scripts/Northrend/Naxxramas/boss_noth.cpp b/src/scripts/Northrend/Naxxramas/boss_noth.cpp index ebe2c2dd3..aa0cdeada 100644 --- a/src/scripts/Northrend/Naxxramas/boss_noth.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_noth.cpp @@ -139,7 +139,7 @@ public: ScriptedAI::EnterEvadeMode(); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { Talk(SAY_AGGRO); if (pInstance) @@ -154,7 +154,7 @@ public: summon->SetInCombatWithZone(); } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { Talk(SAY_DEATH); if (pInstance) diff --git a/src/scripts/Northrend/Naxxramas/boss_patchwerk.cpp b/src/scripts/Northrend/Naxxramas/boss_patchwerk.cpp index d0ddcdbc5..05b5b4649 100644 --- a/src/scripts/Northrend/Naxxramas/boss_patchwerk.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_patchwerk.cpp @@ -76,14 +76,14 @@ public: pInstance->SetData(DATA_IMMORTAL_FAIL, 0); } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { Talk(SAY_DEATH); if (pInstance) pInstance->SetData(EVENT_PATCHWERK, DONE); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { Talk(SAY_AGGRO); diff --git a/src/scripts/Northrend/Naxxramas/boss_razuvious.cpp b/src/scripts/Northrend/Naxxramas/boss_razuvious.cpp index 47bfc2494..418fae732 100644 --- a/src/scripts/Northrend/Naxxramas/boss_razuvious.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_razuvious.cpp @@ -115,7 +115,7 @@ public: me->LowerPlayerDamageReq(damage); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { DoPlaySoundToSet(me, SOUND_DEATH); me->MonsterYell("An honorable... death...", LANG_UNIVERSAL, 0); @@ -125,7 +125,7 @@ public: pInstance->SetData(EVENT_RAZUVIOUS, DONE); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { switch (urand(0,2)) { diff --git a/src/scripts/Northrend/Naxxramas/boss_sapphiron.cpp b/src/scripts/Northrend/Naxxramas/boss_sapphiron.cpp index d0ff443b5..d0b8bb5d1 100644 --- a/src/scripts/Northrend/Naxxramas/boss_sapphiron.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_sapphiron.cpp @@ -147,7 +147,7 @@ public: } } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { EnterCombatSelfFunction(); me->CastSpell(me, RAID_MODE(SPELL_FROST_AURA_10, SPELL_FROST_AURA_25), true); @@ -164,7 +164,7 @@ public: pInstance->SetData(EVENT_SAPPHIRON, IN_PROGRESS); } - void JustDied(Unit* who) + void JustDied(Unit* /*who*/) { me->CastSpell(me, SPELL_SAPPHIRON_DIES, true); if (pInstance) diff --git a/src/scripts/Northrend/Naxxramas/boss_thaddius.cpp b/src/scripts/Northrend/Naxxramas/boss_thaddius.cpp index 4a88c830f..0e5648f77 100644 --- a/src/scripts/Northrend/Naxxramas/boss_thaddius.cpp +++ b/src/scripts/Northrend/Naxxramas/boss_thaddius.cpp @@ -182,7 +182,7 @@ public: pInstance->SetData(DATA_IMMORTAL_FAIL, 0); } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { Talk(SAY_DEATH); if (pInstance) @@ -195,7 +195,7 @@ public: void JustSummoned(Creature* cr) { summons.Summon(cr); } - void EnterCombat(Unit *who) + void EnterCombat(Unit * /*who*/) { me->SetInCombatWithZone(); summons.DoZoneInCombat(NPC_FEUGEN); diff --git a/src/scripts/Northrend/Naxxramas/instance_naxxramas.cpp b/src/scripts/Northrend/Naxxramas/instance_naxxramas.cpp index e5c49a7cf..d9017164c 100644 --- a/src/scripts/Northrend/Naxxramas/instance_naxxramas.cpp +++ b/src/scripts/Northrend/Naxxramas/instance_naxxramas.cpp @@ -345,7 +345,7 @@ public: cr->AI()->DoAction(ACTION_SAPPHIRON_BIRTH); } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp b/src/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp index df32ffd44..fa79afb01 100644 --- a/src/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp +++ b/src/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp @@ -260,7 +260,7 @@ public: } } - void SpellHit(Unit *caster, const SpellInfo *spell) + void SpellHit(Unit * /*caster*/, const SpellInfo *spell) { if (spell->Id == SPELL_POWER_SPARK_MALYGOS_BUFF) { @@ -274,7 +274,7 @@ public: } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.Reset(); DoZoneInCombat(); @@ -738,7 +738,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { me->MonsterYell("UNTHINKABLE! The mortals will destroy... e-everything... my sister... what have you-", LANG_UNIVERSAL, 0); me->PlayDirectSound(SOUND_DEATH); @@ -772,7 +772,7 @@ public: } } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void EnterEvadeMode() { @@ -853,7 +853,7 @@ public: bool bUpdatedFlying; float VORTEX_RADIUS; - void PassengerBoarded(Unit* pass, int8 seat, bool apply) + void PassengerBoarded(Unit* pass, int8 /*seat*/, bool apply) { if (pass && !apply && pass->GetTypeId() == TYPEID_PLAYER) { @@ -911,8 +911,8 @@ public: timer -= diff; } - void AttackStart(Unit* who) {} - void MoveInLineOfSight(Unit* who) {} + void AttackStart(Unit* /*who*/) {} + void MoveInLineOfSight(Unit* /*who*/) {} void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask) { damage = 0; } }; }; @@ -1040,7 +1040,7 @@ public: EventMap events; uint16 timer; - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { DoZoneInCombat(); events.Reset(); @@ -1180,8 +1180,8 @@ public: player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS, 1, 0, me); } - void MoveInLineOfSight(Unit* who) {} - void AttackStart(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} + void AttackStart(Unit* /*who*/) {} }; }; @@ -1207,7 +1207,7 @@ public: InstanceScript* pInstance; EventMap events; - void PassengerBoarded(Unit *who, int8 seat, bool apply) + void PassengerBoarded(Unit *who, int8 /*seat*/, bool apply) { events.Reset(); if (!who) @@ -1325,8 +1325,8 @@ public: } } - void MoveInLineOfSight(Unit* who) {} - void AttackStart(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} + void AttackStart(Unit* /*who*/) {} }; }; @@ -1391,8 +1391,8 @@ public: } } - void MoveInLineOfSight(Unit* who) {} - void AttackStart(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} + void AttackStart(Unit* /*who*/) {} }; }; @@ -1411,7 +1411,7 @@ public: { npc_eoe_wyrmrest_skytalonAI(Creature* pCreature) : VehicleAI(pCreature) { } - void PassengerBoarded(Unit* pass, int8 seat, bool apply) + void PassengerBoarded(Unit* pass, int8 /*seat*/, bool apply) { if (apply) { diff --git a/src/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp b/src/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp index e75cecbe4..526ef0b4c 100644 --- a/src/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp +++ b/src/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp @@ -244,7 +244,7 @@ public: OUT_LOAD_INST_DATA_COMPLETE; } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/Nexus/Nexus/boss_magus_telestra.cpp b/src/scripts/Northrend/Nexus/Nexus/boss_magus_telestra.cpp index 10cd42de9..e8aff23c7 100644 --- a/src/scripts/Northrend/Nexus/Nexus/boss_magus_telestra.cpp +++ b/src/scripts/Northrend/Nexus/Nexus/boss_magus_telestra.cpp @@ -227,7 +227,7 @@ class spell_boss_magus_telestra_summon_telestra_clones : public SpellScriptLoade return GetUnitOwner()->GetTypeId() == TYPEID_UNIT; } - void HandleApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetUnitOwner()->ToCreature()->AI()->Talk(SAY_SPLIT); GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_FIRE_MAGUS_SUMMON, true); @@ -240,7 +240,7 @@ class spell_boss_magus_telestra_summon_telestra_clones : public SpellScriptLoade } - void HandleRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetUnitOwner()->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); GetUnitOwner()->SetControlled(false, UNIT_STATE_STUNNED); diff --git a/src/scripts/Northrend/Nexus/Nexus/boss_ormorok.cpp b/src/scripts/Northrend/Nexus/Nexus/boss_ormorok.cpp index 3815b6780..2fa3d1d33 100644 --- a/src/scripts/Northrend/Nexus/Nexus/boss_ormorok.cpp +++ b/src/scripts/Northrend/Nexus/Nexus/boss_ormorok.cpp @@ -90,7 +90,7 @@ class boss_ormorok : public CreatureScript BossAI::JustDied(killer); } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * /*victim*/) { if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) { diff --git a/src/scripts/Northrend/Nexus/Oculus/boss_drakos.cpp b/src/scripts/Northrend/Nexus/Oculus/boss_drakos.cpp index 8e858f486..850056c19 100644 --- a/src/scripts/Northrend/Nexus/Oculus/boss_drakos.cpp +++ b/src/scripts/Northrend/Nexus/Oculus/boss_drakos.cpp @@ -70,7 +70,7 @@ public: events.Reset(); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { Talk(SAY_AGGRO); @@ -84,7 +84,7 @@ public: events.RescheduleEvent(EVENT_SUMMON, 2000); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { Talk(SAY_DEATH); @@ -103,13 +103,13 @@ public: } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * /*victim*/) { Talk(SAY_KILL); } - void MoveInLineOfSight(Unit* who) {} - void JustSummoned(Creature* summon) {} + void MoveInLineOfSight(Unit* /*who*/) {} + void JustSummoned(Creature* /*summon*/) {} void UpdateAI(uint32 diff) { @@ -214,8 +214,8 @@ public: PickNewLocation(); } - void AttackStart(Unit* who) {} - void MoveInLineOfSight(Unit* who) {} + void AttackStart(Unit* /*who*/) {} + void MoveInLineOfSight(Unit* /*who*/) {} void UpdateAI(uint32 diff) { diff --git a/src/scripts/Northrend/Nexus/Oculus/boss_eregos.cpp b/src/scripts/Northrend/Nexus/Oculus/boss_eregos.cpp index 5deee9338..ad7550259 100644 --- a/src/scripts/Northrend/Nexus/Oculus/boss_eregos.cpp +++ b/src/scripts/Northrend/Nexus/Oculus/boss_eregos.cpp @@ -88,7 +88,7 @@ public: events.Reset(); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { Talk(SAY_AGGRO); @@ -122,7 +122,7 @@ public: events.RescheduleEvent(EVENT_SUMMON_WHELPS, 40000); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { Talk(SAY_DEATH); @@ -132,7 +132,7 @@ public: me->SummonGameObject(GO_SPOTLIGHT, 1018.06f, 1051.09f, 605.619019f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0); } - void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask) + void DamageTaken(Unit*, uint32 & /*damage*/, DamageEffectType, SpellSchoolMask) { if( !me->GetMap()->IsHeroic() ) return; @@ -144,12 +144,12 @@ public: } } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * /*victim*/) { Talk(SAY_KILL); } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void JustSummoned(Creature* pSummon) { diff --git a/src/scripts/Northrend/Nexus/Oculus/boss_varos.cpp b/src/scripts/Northrend/Nexus/Oculus/boss_varos.cpp index d00afa1b4..1d4709d4b 100644 --- a/src/scripts/Northrend/Nexus/Oculus/boss_varos.cpp +++ b/src/scripts/Northrend/Nexus/Oculus/boss_varos.cpp @@ -107,7 +107,7 @@ public: me->DisableRotate(false); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { Talk(SAY_AGGRO); @@ -121,7 +121,7 @@ public: events.RescheduleEvent(EVENT_ENERGIZE_CORES_THIN, 0); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { Talk(SAY_DEATH); @@ -139,8 +139,8 @@ public: ScriptedAI::EnterEvadeMode(); } - void MoveInLineOfSight(Unit* who) {} - void JustSummoned(Creature* summon) {} + void MoveInLineOfSight(Unit* /*who*/) {} + void JustSummoned(Creature* /*summon*/) {} void UpdateAI(uint32 diff) { diff --git a/src/scripts/Northrend/Nexus/Oculus/instance_oculus.cpp b/src/scripts/Northrend/Nexus/Oculus/instance_oculus.cpp index 1d039cf45..4b1bbf6e0 100644 --- a/src/scripts/Northrend/Nexus/Oculus/instance_oculus.cpp +++ b/src/scripts/Northrend/Nexus/Oculus/instance_oculus.cpp @@ -262,7 +262,7 @@ public: OUT_LOAD_INST_DATA_COMPLETE; } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/Nexus/Oculus/oculus.cpp b/src/scripts/Northrend/Nexus/Oculus/oculus.cpp index a8f6e229d..4fb6a201f 100644 --- a/src/scripts/Northrend/Nexus/Oculus/oculus.cpp +++ b/src/scripts/Northrend/Nexus/Oculus/oculus.cpp @@ -184,7 +184,7 @@ public: bool JustSummoned; uint16 despawnTimer; - void PassengerBoarded(Unit* who, int8 seatid, bool add) + void PassengerBoarded(Unit* /*who*/, int8 /*seatid*/, bool add) { if (add) { @@ -200,7 +200,7 @@ public: } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { me->SetHomePosition(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), me->GetOrientation()); me->DisappearAndDie(); diff --git a/src/scripts/Northrend/Ulduar/HallsOfLightning/boss_ionar.cpp b/src/scripts/Northrend/Ulduar/HallsOfLightning/boss_ionar.cpp index 103d5fd0c..27d4b70f8 100644 --- a/src/scripts/Northrend/Ulduar/HallsOfLightning/boss_ionar.cpp +++ b/src/scripts/Northrend/Ulduar/HallsOfLightning/boss_ionar.cpp @@ -233,7 +233,7 @@ public: void MoveInLineOfSight(Unit*) { } void UpdateAI(uint32) { } - void AttackStart(Unit* who) { } + void AttackStart(Unit* /*who*/) { } void Reset() { returning = false; } diff --git a/src/scripts/Northrend/Ulduar/HallsOfLightning/instance_halls_of_lightning.cpp b/src/scripts/Northrend/Ulduar/HallsOfLightning/instance_halls_of_lightning.cpp index 9f0942579..a596e7b48 100644 --- a/src/scripts/Northrend/Ulduar/HallsOfLightning/instance_halls_of_lightning.cpp +++ b/src/scripts/Northrend/Ulduar/HallsOfLightning/instance_halls_of_lightning.cpp @@ -118,7 +118,7 @@ public: } } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/Ulduar/HallsOfStone/boss_krystallus.cpp b/src/scripts/Northrend/Ulduar/HallsOfStone/boss_krystallus.cpp index fd941671d..081b55844 100644 --- a/src/scripts/Northrend/Ulduar/HallsOfStone/boss_krystallus.cpp +++ b/src/scripts/Northrend/Ulduar/HallsOfStone/boss_krystallus.cpp @@ -67,7 +67,7 @@ public: pInstance->SetData(BOSS_KRYSTALLUS, NOT_STARTED); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.Reset(); events.RescheduleEvent(EVENT_BOULDER, 8000); @@ -153,14 +153,14 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { Talk(SAY_DEATH); if (pInstance) pInstance->SetData(BOSS_KRYSTALLUS, DONE); } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * /*victim*/) { Talk(SAY_KILL); } diff --git a/src/scripts/Northrend/Ulduar/HallsOfStone/boss_maiden_of_grief.cpp b/src/scripts/Northrend/Ulduar/HallsOfStone/boss_maiden_of_grief.cpp index a8134ded9..69327f1c9 100644 --- a/src/scripts/Northrend/Ulduar/HallsOfStone/boss_maiden_of_grief.cpp +++ b/src/scripts/Northrend/Ulduar/HallsOfStone/boss_maiden_of_grief.cpp @@ -62,7 +62,7 @@ public: } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.ScheduleEvent(EVENT_STORM, 5000); events.ScheduleEvent(EVENT_SHOCK, 26000+rand()%6000); @@ -124,7 +124,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { Talk(SAY_DEATH); @@ -132,7 +132,7 @@ public: pInstance->SetData(BOSS_MAIDEN_OF_GRIEF, DONE); } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * /*victim*/) { if (urand(0,1)) return; diff --git a/src/scripts/Northrend/Ulduar/HallsOfStone/boss_sjonnir.cpp b/src/scripts/Northrend/Ulduar/HallsOfStone/boss_sjonnir.cpp index 3bdfbfe35..5c8e621aa 100644 --- a/src/scripts/Northrend/Ulduar/HallsOfStone/boss_sjonnir.cpp +++ b/src/scripts/Northrend/Ulduar/HallsOfStone/boss_sjonnir.cpp @@ -148,7 +148,7 @@ public: } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { Talk(SAY_AGGRO); @@ -309,7 +309,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { Talk(SAY_DEATH); @@ -325,7 +325,7 @@ public: } } - void KilledUnit(Unit *victim) + void KilledUnit(Unit * /*victim*/) { if (urand(0,1)) return; @@ -389,7 +389,7 @@ public: { boss_sjonnir_dwarfAI(Creature *c) : ScriptedAI(c) { } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!UpdateVictim()) return; @@ -423,7 +423,7 @@ public: { events.ScheduleEvent(EVENT_TOXIC_VOLLEY, 5000); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if (InstanceScript *pInstance = me->GetInstanceScript()) if (Creature *sjonnir = ObjectAccessor::GetCreature(*me, pInstance->GetData64(NPC_SJONNIR))) diff --git a/src/scripts/Northrend/Ulduar/HallsOfStone/brann_bronzebeard.cpp b/src/scripts/Northrend/Ulduar/HallsOfStone/brann_bronzebeard.cpp index 951035835..e0d197bfc 100644 --- a/src/scripts/Northrend/Ulduar/HallsOfStone/brann_bronzebeard.cpp +++ b/src/scripts/Northrend/Ulduar/HallsOfStone/brann_bronzebeard.cpp @@ -184,7 +184,7 @@ public: return true; } - bool OnGossipSelect(Player *player, Creature *pCreature, uint32 sender, uint32 action ) + bool OnGossipSelect(Player *player, Creature *pCreature, uint32 /*sender*/, uint32 action ) { if (action) { @@ -290,7 +290,7 @@ public: Creature* GetMarnak() { return ObjectAccessor::GetCreature(*me, MarnakGUID); } Creature* GetKaddrak() { return ObjectAccessor::GetCreature(*me, KaddrakGUID); } - void MoveInLineOfSight(Unit* pWho) { } + void MoveInLineOfSight(Unit* /*pWho*/) { } void DamageTaken(Unit*, uint32 &damage, DamageEffectType, SpellSchoolMask) { if (damage && pInstance) @@ -581,7 +581,7 @@ public: } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { ResetEvent(); if(pInstance) diff --git a/src/scripts/Northrend/Ulduar/HallsOfStone/instance_halls_of_stone.cpp b/src/scripts/Northrend/Ulduar/HallsOfStone/instance_halls_of_stone.cpp index 0612ebe06..735a1738d 100644 --- a/src/scripts/Northrend/Ulduar/HallsOfStone/instance_halls_of_stone.cpp +++ b/src/scripts/Northrend/Ulduar/HallsOfStone/instance_halls_of_stone.cpp @@ -156,7 +156,7 @@ public: return 0; } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp index e25e332c3..5ff7ce6aa 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_algalon_the_observer.cpp @@ -968,7 +968,7 @@ class npc_living_constellation : public CreatureScript _isActive = false; } - uint32 GetData(uint32 param) const + uint32 GetData(uint32 /*param*/) const { return _isActive; } @@ -1090,7 +1090,7 @@ class go_celestial_planetarium_access : public GameObjectScript EventMap events; bool _locked; - bool GossipHello(Player* player, bool reportUse) + bool GossipHello(Player* player, bool /*reportUse*/) { bool hasKey = true; if (LockEntry const* lock = sLockStore.LookupEntry(go->GetGOInfo()->goober.lockId)) diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_assembly_of_iron.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_assembly_of_iron.cpp index 8a01e4493..40ea95036 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_assembly_of_iron.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_assembly_of_iron.cpp @@ -284,7 +284,7 @@ public: } } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { if (!pInstance) return; @@ -338,7 +338,7 @@ public: me->CastSpell(me, SPELL_ELECTRICAL_CHARGE, true); } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->Id == SPELL_SUPERCHARGE) UpdatePhase(); @@ -483,7 +483,7 @@ public: } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if (!pInstance) return; @@ -528,7 +528,7 @@ public: } } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->Id == SPELL_SUPERCHARGE) UpdatePhase(); @@ -621,7 +621,7 @@ public: me->DespawnOrUnsummon(1); } - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 type, uint32 /*id*/) { if (type == FOLLOW_MOTION_TYPE && !_boomed) { @@ -728,7 +728,7 @@ public: } } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { if (!pInstance) return; @@ -773,13 +773,13 @@ public: } } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->Id == SPELL_SUPERCHARGE) UpdatePhase(); } - void SpellHitTarget(Unit* target, const SpellInfo* spellInfo) + void SpellHitTarget(Unit* /*target*/, const SpellInfo* spellInfo) { if (spellInfo->Id == SPELL_CHAIN_LIGHTNING || spellInfo->Id == uint32(RAID_MODE(61916, 63482))) // Lightning Whirl triggered _stunnedAchievement = false; @@ -1011,7 +1011,7 @@ class achievement_assembly_of_iron : public AchievementCriteriaScript { } - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetAuraCount(SPELL_SUPERCHARGE) >= 2 && (!_targetEntry || target->GetEntry() == _targetEntry); } @@ -1025,7 +1025,7 @@ class achievement_cant_do_that_while_stunned : public AchievementCriteriaScript public: achievement_cant_do_that_while_stunned() : AchievementCriteriaScript("achievement_cant_do_that_while_stunned") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { bool allow = target && target->GetAuraCount(SPELL_SUPERCHARGE) >= 2; if (!allow) diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_auriaya.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_auriaya.cpp index 7a60214a9..7cceaed16 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_auriaya.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_auriaya.cpp @@ -159,7 +159,7 @@ public: void JustReachedHome() { me->setActive(false); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { if (m_pInstance) m_pInstance->SetData(TYPE_AURIAYA, IN_PROGRESS); @@ -178,7 +178,7 @@ public: me->setActive(true); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (urand(0,2)) return; @@ -195,7 +195,7 @@ public: } } - void JustDied(Unit *victim) + void JustDied(Unit * /*victim*/) { if (m_pInstance) m_pInstance->SetData(TYPE_AURIAYA, DONE); @@ -464,7 +464,7 @@ class achievement_auriaya_crazy_cat_lady : public AchievementCriteriaScript public: achievement_auriaya_crazy_cat_lady() : AchievementCriteriaScript("achievement_auriaya_crazy_cat_lady") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { if (target) if (InstanceScript* instance = target->GetInstanceScript()) @@ -480,7 +480,7 @@ class achievement_auriaya_nine_lives : public AchievementCriteriaScript public: achievement_auriaya_nine_lives() : AchievementCriteriaScript("achievement_auriaya_nine_lives") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { if (target) if (InstanceScript* instance = target->GetInstanceScript()) diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_flame_leviathan.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_flame_leviathan.cpp index f693fc492..1179ab432 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_flame_leviathan.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_flame_leviathan.cpp @@ -620,7 +620,7 @@ void boss_flame_leviathan::boss_flame_leviathanAI::SayPursue() } } -void boss_flame_leviathan::boss_flame_leviathanAI::SpellHit(Unit* caster, const SpellInfo* spellInfo) +void boss_flame_leviathan::boss_flame_leviathanAI::SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->Id == SPELL_SYSTEMS_SHUTDOWN) { @@ -992,7 +992,7 @@ public: } } - void MovementInform(uint32 type, uint32 param) + void MovementInform(uint32 type, uint32 /*param*/) { if (type == FOLLOW_MOTION_TYPE && !_timeToHit) { @@ -1179,7 +1179,7 @@ public: damage = 0; } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->SchoolMask & SPELL_SCHOOL_MASK_FIRE && !me->HasAura(SPELL_BLAZE)) me->CastSpell(me, SPELL_BLAZE, true); @@ -1201,7 +1201,7 @@ public: return true; } - bool OnGossipSelect(Player* player, Creature* creature, uint32 uiSender, uint32 uiAction) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction) { switch (uiAction) { @@ -1371,7 +1371,7 @@ class npc_brann_ulduar : public CreatureScript public: npc_brann_ulduar() : CreatureScript("npc_brann_ulduar") { } - bool OnGossipHello(Player* player, Creature* creature) + bool OnGossipHello(Player* /*player*/, Creature* creature) { if (creature->GetInstanceScript() && creature->GetInstanceScript()->GetData(TYPE_LEVIATHAN) == NOT_STARTED && !creature->AI()->GetData(DATA_EVENT_STARTED)) creature->AI()->DoAction(ACTION_START_BRANN_EVENT); @@ -1673,7 +1673,7 @@ public: uint32 _allowTimer; - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 /*type*/, uint32 id) { if (id == me->GetEntry()) { @@ -2114,7 +2114,7 @@ class spell_vehicle_grab_pyrite : public SpellScriptLoader class spell_vehicle_grab_pyrite_SpellScript : public SpellScript { PrepareSpellScript(spell_vehicle_grab_pyrite_SpellScript); - void HandleScript(SpellEffIndex effIndex) + void HandleScript(SpellEffIndex /*effIndex*/) { if (Unit* target = GetHitUnit()) if (Unit* seat = GetCaster()->GetVehicleBase()) @@ -2155,7 +2155,7 @@ class spell_vehicle_circuit_overload : public SpellScriptLoader { PrepareAuraScript(spell_vehicle_circuit_overload_AuraScript); - void OnPeriodic(AuraEffect const* aurEff) + void OnPeriodic(AuraEffect const* /*aurEff*/) { if (Unit* target = GetTarget()) if (int(target->GetAppliedAuras().count(SPELL_OVERLOAD_CIRCUIT)) >= (target->GetMap()->Is25ManRaid() ? 4 : 2)) @@ -2335,7 +2335,7 @@ class achievement_flame_leviathan_towers : public AchievementCriteriaScript { } - bool OnCheck(Player* player, Unit* target /*Flame Leviathan*/) + bool OnCheck(Player* /*player*/, Unit* target /*Flame Leviathan*/) { return target && _towerCount <= target->GetAI()->GetData(DATA_GET_TOWER_COUNT); } @@ -2349,7 +2349,7 @@ class achievement_flame_leviathan_shutout : public AchievementCriteriaScript public: achievement_flame_leviathan_shutout() : AchievementCriteriaScript("achievement_flame_leviathan_shutout") {} - bool OnCheck(Player* player, Unit* target /*Flame Leviathan*/) + bool OnCheck(Player* /*player*/, Unit* target /*Flame Leviathan*/) { if (target) if (target->GetAI()->GetData(DATA_GET_SHUTDOWN)) diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_freya.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_freya.cpp index b5a1a58af..853fce3ac 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_freya.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_freya.cpp @@ -1291,7 +1291,7 @@ class achievement_freya_getting_back_to_nature : public AchievementCriteriaScrip public: achievement_freya_getting_back_to_nature() : AchievementCriteriaScript("achievement_freya_getting_back_to_nature") {} - bool OnCheck(Player* player, Unit* target /*Freya*/) + bool OnCheck(Player* /*player*/, Unit* target /*Freya*/) { if (target) if (target->GetAI()->GetData(DATA_BACK_TO_NATURE)) @@ -1308,7 +1308,7 @@ class achievement_freya_knock_on_wood : public AchievementCriteriaScript { } - bool OnCheck(Player* player, Unit* target /*Freya*/) + bool OnCheck(Player* /*player*/, Unit* target /*Freya*/) { return target && _elderCount <= target->GetAI()->GetData(DATA_GET_ELDER_COUNT); } diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_general_vezax.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_general_vezax.cpp index 52c73853b..eab9d0cde 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_general_vezax.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_general_vezax.cpp @@ -139,7 +139,7 @@ public: me->setActive(false); } - void EnterCombat(Unit* pWho) + void EnterCombat(Unit* /*pWho*/) { me->setActive(true); me->SetInCombatWithZone(); @@ -345,7 +345,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { summons.DespawnAll(); if (pInstance) @@ -379,7 +379,7 @@ public: } } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void JustSummoned(Creature* summon) { @@ -413,7 +413,7 @@ public: InstanceScript* pInstance; - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { me->CastSpell(me, SPELL_SARONITE_VAPORS_AURA, true); @@ -450,7 +450,7 @@ public: InstanceScript* pInstance; uint16 timer; - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { me->DespawnOrUnsummon(3000); @@ -484,7 +484,7 @@ public: { PrepareAuraScript(spell_aura_of_despair_AuraScript) - void OnApply(AuraEffect const* aurEff, AuraEffectHandleModes mode) + void OnApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (Unit* caster = GetCaster()) if (Unit* target = GetTarget()) @@ -532,7 +532,7 @@ public: { PrepareAuraScript(spell_mark_of_the_faceless_periodic_AuraScript) - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { if (Unit* caster = GetCaster()) if (Unit* target = GetTarget()) @@ -650,7 +650,7 @@ class achievement_smell_saronite : public AchievementCriteriaScript public: achievement_smell_saronite() : AchievementCriteriaScript("achievement_smell_saronite") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetEntry() == NPC_VEZAX && target->GetTypeId() == TYPEID_UNIT && target->ToCreature()->AI()->GetData(1); } @@ -661,7 +661,7 @@ class achievement_shadowdodger : public AchievementCriteriaScript public: achievement_shadowdodger() : AchievementCriteriaScript("achievement_shadowdodger") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetEntry() == NPC_VEZAX && target->GetTypeId() == TYPEID_UNIT && target->ToCreature()->AI()->GetData(2); } diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_hodir.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_hodir.cpp index 40a1c246b..755a3a36d 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_hodir.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_hodir.cpp @@ -230,7 +230,7 @@ public: pInstance->SetData(TYPE_HODIR, NOT_STARTED); } - void EnterCombat(Unit* pWho) + void EnterCombat(Unit* /*pWho*/) { if (summons.size() != uint32(RAID_MODE(8, 16))) { @@ -555,7 +555,7 @@ public: return 0; } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} }; }; @@ -623,7 +623,7 @@ public: InstanceScript* pInstance; uint16 timer; - void DamageTaken(Unit* doneBy, uint32 &damage, DamageEffectType, SpellSchoolMask) + void DamageTaken(Unit* doneBy, uint32 & /*damage*/, DamageEffectType, SpellSchoolMask) { if (pInstance && doneBy) if (pInstance->GetData(TYPE_HODIR) == NOT_STARTED) @@ -691,7 +691,7 @@ public: } } - void SpellHit(Unit* caster, const SpellInfo* spell) + void SpellHit(Unit* /*caster*/, const SpellInfo* spell) { switch( spell->Id ) { @@ -789,7 +789,7 @@ public: } } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void EnterEvadeMode() {} bool CanAIAttack(const Unit* t) const { return t->GetEntry() == NPC_HODIR; } @@ -887,7 +887,7 @@ public: } } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void EnterEvadeMode() {} bool CanAIAttack(const Unit* t) const { return t->GetEntry() == NPC_HODIR; } @@ -988,7 +988,7 @@ public: } } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void EnterEvadeMode() {} bool CanAIAttack(const Unit* t) const { return t->GetEntry() == NPC_HODIR; } @@ -1104,7 +1104,7 @@ public: } } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void EnterEvadeMode() {} bool CanAIAttack(const Unit* t) const { return t->GetEntry() == NPC_HODIR; } @@ -1165,7 +1165,7 @@ public: return true; } - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { if (Unit* target = GetTarget()) @@ -1350,7 +1350,7 @@ public: { PrepareAuraScript(spell_hodir_storm_power_AuraScript) - void OnApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void OnApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (Unit* caster = GetCaster()) if (Aura* a = caster->GetAura(GetId() == SPELL_SHAMAN_STORM_POWER_10 ? SPELL_SHAMAN_STORM_CLOUD_10 : SPELL_SHAMAN_STORM_CLOUD_25)) @@ -1386,7 +1386,7 @@ public: { PrepareAuraScript(spell_hodir_storm_cloud_AuraScript) - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { PreventDefaultAction(); if (Unit* target = GetTarget()) @@ -1410,7 +1410,7 @@ class achievement_cheese_the_freeze : public AchievementCriteriaScript public: achievement_cheese_the_freeze() : AchievementCriteriaScript("achievement_cheese_the_freeze") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetEntry() == NPC_HODIR && target->GetTypeId() == TYPEID_UNIT && target->ToCreature()->AI()->GetData(1); } @@ -1421,7 +1421,7 @@ class achievement_getting_cold_in_here : public AchievementCriteriaScript public: achievement_getting_cold_in_here() : AchievementCriteriaScript("achievement_getting_cold_in_here") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetEntry() == NPC_HODIR && target->GetTypeId() == TYPEID_UNIT && target->ToCreature()->AI()->GetData(2); } @@ -1432,7 +1432,7 @@ class achievement_i_could_say_that_this_cache_was_rare : public AchievementCrite public: achievement_i_could_say_that_this_cache_was_rare() : AchievementCriteriaScript("achievement_i_could_say_that_this_cache_was_rare") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetEntry() == NPC_HODIR && target->GetTypeId() == TYPEID_UNIT && target->ToCreature()->AI()->GetData(3); } @@ -1443,7 +1443,7 @@ class achievement_i_have_the_coolest_friends : public AchievementCriteriaScript public: achievement_i_have_the_coolest_friends() : AchievementCriteriaScript("achievement_i_have_the_coolest_friends") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetEntry() == NPC_HODIR && target->GetTypeId() == TYPEID_UNIT && target->ToCreature()->AI()->GetData(4); } @@ -1454,7 +1454,7 @@ class achievement_staying_buffed_all_winter_10 : public AchievementCriteriaScrip public: achievement_staying_buffed_all_winter_10() : AchievementCriteriaScript("achievement_staying_buffed_all_winter_10") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* player, Unit* /*target*/) { return player && player->HasAura(SPELL_MAGE_TOASTY_FIRE_AURA) && player->HasAura(SPELL_DRUID_STARLIGHT_AREA_AURA) && player->HasAura(SPELL_SHAMAN_STORM_POWER_10); } @@ -1465,7 +1465,7 @@ class achievement_staying_buffed_all_winter_25 : public AchievementCriteriaScrip public: achievement_staying_buffed_all_winter_25() : AchievementCriteriaScript("achievement_staying_buffed_all_winter_25") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* player, Unit* /*target*/) { return player && player->HasAura(SPELL_MAGE_TOASTY_FIRE_AURA) && player->HasAura(SPELL_DRUID_STARLIGHT_AREA_AURA) && player->HasAura(SPELL_SHAMAN_STORM_POWER_25); } diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_ignis.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_ignis.cpp index c402ea2ba..93681e56f 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_ignis.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_ignis.cpp @@ -150,7 +150,7 @@ public: } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if (InstanceScript* instance = me->GetInstanceScript()) if (Creature* ignis = ObjectAccessor::GetCreature(*me, instance->GetData64(TYPE_IGNIS))) @@ -217,7 +217,7 @@ public: } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { me->setActive(true); @@ -256,7 +256,7 @@ public: } } - void SetData(uint32 id, uint32 value) + void SetData(uint32 id, uint32 /*value*/) { if (id == 1337) { @@ -280,7 +280,7 @@ public: me->setActive(false); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if( rand()%2 ) { @@ -294,7 +294,7 @@ public: } } - void JustDied(Unit *victim) + void JustDied(Unit * /*victim*/) { me->MonsterYell(TEXT_DEATH, LANG_UNIVERSAL, 0); me->PlayDirectSound(SOUND_DEATH); @@ -318,7 +318,7 @@ public: } } - void MoveInLineOfSight(Unit* who) {} + void MoveInLineOfSight(Unit* /*who*/) {} void UpdateAI(uint32 diff) { @@ -478,7 +478,7 @@ public: { PrepareSpellScript(spell_ignis_grab_initial_SpellScript); - void HandleScript(SpellEffIndex effIndex) + void HandleScript(SpellEffIndex /*effIndex*/) { if (Unit* t = GetHitUnit()) t->CastSpell(t, SPELL_GRAB_TRIGGERED, true); @@ -505,7 +505,7 @@ public: { PrepareAuraScript(spell_ignis_slag_pot_AuraScript) - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { if (Unit* c = GetCaster()) if (Unit* t = GetTarget()) @@ -551,7 +551,7 @@ class achievement_ignis_shattered : public AchievementCriteriaScript public: achievement_ignis_shattered() : AchievementCriteriaScript("achievement_ignis_shattered") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { if (!target || target->GetTypeId() != TYPEID_UNIT) return false; diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp index 0fb59c480..eb0e6be6f 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp @@ -301,7 +301,7 @@ public: Talk(SAY_SLAY); } - void PassengerBoarded(Unit* who, int8 seatId, bool apply) + void PassengerBoarded(Unit* who, int8 /*seatId*/, bool apply) { if (!me->IsAlive()) return; @@ -343,7 +343,7 @@ public: } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { if (m_pInstance) m_pInstance->SetData(TYPE_KOLOGARN, IN_PROGRESS); @@ -502,7 +502,7 @@ public: void EnterEvadeMode() {} void MoveInLineOfSight(Unit*) {} void AttackStart(Unit*) {} - void UpdateAI(uint32 diff) {} + void UpdateAI(uint32 /*diff*/) {} void Reset() { @@ -510,7 +510,7 @@ public: _damageDone = 0; } - void PassengerBoarded(Unit* who, int8 seatId, bool apply) + void PassengerBoarded(Unit* /*who*/, int8 /*seatId*/, bool apply) { if (!apply) _damageDone = 0; @@ -724,7 +724,7 @@ class spell_ulduar_squeezed_lifeless : public SpellScriptLoader { PrepareSpellScript(spell_ulduar_squeezed_lifeless_SpellScript); - void HandleInstaKill(SpellEffIndex effIndex) + void HandleInstaKill(SpellEffIndex /*effIndex*/) { if (!GetHitPlayer() || !GetHitPlayer()->GetVehicle()) return; @@ -800,7 +800,7 @@ class achievement_kologarn_looks_could_kill : public AchievementCriteriaScript public: achievement_kologarn_looks_could_kill() : AchievementCriteriaScript("achievement_kologarn_looks_could_kill") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { if (target) if (InstanceScript* instance = target->GetInstanceScript()) @@ -816,7 +816,7 @@ class achievement_kologarn_rubble_and_roll : public AchievementCriteriaScript public: achievement_kologarn_rubble_and_roll() : AchievementCriteriaScript("achievement_kologarn_rubble_and_roll") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { if (target) if (InstanceScript* instance = target->GetInstanceScript()) @@ -832,7 +832,7 @@ class achievement_kologarn_with_open_arms : public AchievementCriteriaScript public: achievement_kologarn_with_open_arms() : AchievementCriteriaScript("achievement_kologarn_with_open_arms") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { if (target) if (InstanceScript* instance = target->GetInstanceScript()) diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp index acfebbb62..4e3c970cc 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp @@ -347,7 +347,7 @@ public: ScriptedAI::JustReachedHome(); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { me->setActive(true); DoZoneInCombat(); @@ -853,7 +853,7 @@ public: } } - void MoveInLineOfSight(Unit* mover) {} + void MoveInLineOfSight(Unit* /*mover*/) {} void EnterEvadeMode() { @@ -946,7 +946,7 @@ public: } } - void SetData(uint32 id, uint32 value) + void SetData(uint32 /*id*/, uint32 value) { switch (value) // end of phase 1-3, 4-6 for voltron { @@ -1267,7 +1267,7 @@ public: bIsEvading = false; } - void PassengerBoarded(Unit* p, int8 seat, bool apply) + void PassengerBoarded(Unit* p, int8 /*seat*/, bool apply) { if (p->GetEntry() == NPC_LEVIATHAN_MKII_CANNON && !apply) { @@ -1285,7 +1285,7 @@ public: return 0; } - void SpellHit(Unit* caster, const SpellInfo *spell) + void SpellHit(Unit* /*caster*/, const SpellInfo *spell) { if( spell->Id == SPELL_SELF_REPAIR ) { @@ -1382,7 +1382,7 @@ public: } } - uint32 GetData(uint32 id) const + uint32 GetData(uint32 /*id*/) const { return spinningUpOrientation; } @@ -1618,13 +1618,13 @@ public: bIsEvading = false; } - void PassengerBoarded(Unit* p, int8 seat, bool apply) + void PassengerBoarded(Unit* p, int8 /*seat*/, bool apply) { if (p->GetEntry() == NPC_ROCKET_VISUAL && !apply) p->ToCreature()->DespawnOrUnsummon(8000); } - void SpellHit(Unit* caster, const SpellInfo *spell) + void SpellHit(Unit* /*caster*/, const SpellInfo *spell) { if( spell->Id == SPELL_SELF_REPAIR ) { @@ -1957,7 +1957,7 @@ public: summons.Despawn(s); } - void SpellHit(Unit* caster, const SpellInfo *spell) + void SpellHit(Unit* /*caster*/, const SpellInfo *spell) { if( spell->Id == SPELL_SELF_REPAIR ) { @@ -1993,7 +1993,7 @@ public: void AttackStart(Unit* /*who*/) {} void MoveInLineOfSight(Unit* /*who*/) {} - bool CanAIAttack(const Unit* target) const { return false; } + bool CanAIAttack(const Unit* /*target*/) const { return false; } void SpellHitTarget(Unit* target, const SpellInfo* spell) { @@ -2060,12 +2060,12 @@ public: me->AddUnitState(UNIT_STATE_NO_ENVIRONMENT_UPD); } - void SetData(uint32 id, uint32 value) + void SetData(uint32 /*id*/, uint32 /*value*/) { me->GetMotionMaster()->MovePoint(0, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ()+100.0f, false, true); } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!me->GetVehicle()) { @@ -2107,7 +2107,7 @@ public: InstanceScript* pInstance; uint16 despawnTimer; - void SetData(uint32 id, uint32 value) + void SetData(uint32 /*id*/, uint32 /*value*/) { despawnTimer = 20000; } @@ -2241,7 +2241,7 @@ public: return true; } - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { if (Unit* c = GetCaster()) { @@ -2437,7 +2437,7 @@ public: { npc_ulduar_flames_spreadAI(Creature *pCreature) : NullCreatureAI(pCreature) {} - void SpellHit(Unit* caster, const SpellInfo* spell) + void SpellHit(Unit* /*caster*/, const SpellInfo* spell) { switch( spell->Id ) { @@ -2559,7 +2559,7 @@ class achievement_mimiron_firefighter : public AchievementCriteriaScript public: achievement_mimiron_firefighter() : AchievementCriteriaScript("achievement_mimiron_firefighter") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetEntry() == NPC_MIMIRON && target->GetTypeId() == TYPEID_UNIT && target->ToCreature()->AI()->GetData(1); } @@ -2570,7 +2570,7 @@ class achievement_mimiron_set_up_us_the_bomb_11 : public AchievementCriteriaScri public: achievement_mimiron_set_up_us_the_bomb_11() : AchievementCriteriaScript("achievement_mimiron_set_up_us_the_bomb_11") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetEntry() == NPC_MIMIRON && target->GetTypeId() == TYPEID_UNIT && !target->ToCreature()->AI()->GetData(11); } @@ -2581,7 +2581,7 @@ class achievement_mimiron_set_up_us_the_bomb_12 : public AchievementCriteriaScri public: achievement_mimiron_set_up_us_the_bomb_12() : AchievementCriteriaScript("achievement_mimiron_set_up_us_the_bomb_12") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetEntry() == NPC_MIMIRON && target->GetTypeId() == TYPEID_UNIT && !target->ToCreature()->AI()->GetData(12); } @@ -2592,7 +2592,7 @@ class achievement_mimiron_set_up_us_the_bomb_13 : public AchievementCriteriaScri public: achievement_mimiron_set_up_us_the_bomb_13() : AchievementCriteriaScript("achievement_mimiron_set_up_us_the_bomb_13") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetEntry() == NPC_MIMIRON && target->GetTypeId() == TYPEID_UNIT && !target->ToCreature()->AI()->GetData(13); } diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp index 2079a12eb..33f04a71a 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp @@ -160,7 +160,7 @@ public: me->GetMotionMaster()->MoveChase(who); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { me->SetInCombatWithZone(); events.Reset(); @@ -190,7 +190,7 @@ public: pInstance->SetData(TYPE_RAZORSCALE, IN_PROGRESS); } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { summons.DespawnAll(); @@ -604,7 +604,7 @@ class npc_ulduar_expedition_commander : public CreatureScript return true; } - bool OnGossipSelect(Player* player, Creature* creature, uint32 uiSender, uint32 uiAction) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction) { if (!player || !creature) return true; @@ -797,7 +797,7 @@ public: fixingGUID = 0; } - void SetData(uint32 id, uint32 value) + void SetData(uint32 id, uint32 /*value*/) { switch (id) { @@ -1094,7 +1094,7 @@ class achievement_quick_shave : public AchievementCriteriaScript public: achievement_quick_shave() : AchievementCriteriaScript("achievement_quick_shave") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetTypeId() == TYPEID_UNIT && target->GetEntry() == NPC_RAZORSCALE && target->ToCreature()->AI()->GetData(1); } @@ -1105,7 +1105,7 @@ class achievement_iron_dwarf_medium_rare : public AchievementCriteriaScript public: achievement_iron_dwarf_medium_rare() : AchievementCriteriaScript("achievement_iron_dwarf_medium_rare") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetEntry() == NPC_RAZORSCALE; } diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_thorim.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_thorim.cpp index 676fe1aa9..e15b94651 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_thorim.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_thorim.cpp @@ -979,7 +979,7 @@ public: me->CastSpell(me, SPELL_LIGHTNING_DESTRUCTION, true); } - void WaypointReached(uint32 point) + void WaypointReached(uint32 /*point*/) { } }; @@ -1043,9 +1043,9 @@ public: SetDespawnAtEnd(false); } - void MoveInLineOfSight(Unit *who) {} - void EnterCombat(Unit *who) {} - void AttackStart(Unit *who) {} + void MoveInLineOfSight(Unit * /*who*/) {} + void EnterCombat(Unit * /*who*/) {} + void AttackStart(Unit * /*who*/) {} void InitWaypoint() { @@ -1066,7 +1066,7 @@ public: me->CastSpell(me, RAID_MODE(SPELL_BLIZZARD_10, SPELL_BLIZZARD_25), true); } - void WaypointReached(uint32 point) + void WaypointReached(uint32 /*point*/) { } }; @@ -1173,7 +1173,7 @@ public: thorim->AI()->DoAction(ACTION_START_TRASH_DIED); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { if (me->GetEntry() == NPC_DARK_RUNE_ACOLYTE_I) { @@ -1292,7 +1292,7 @@ public: _isCaster = (me->GetEntry() == NPC_DARK_RUNE_ACOLYTE_G); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { if (me->GetEntry() == NPC_IRON_RING_GUARD) { @@ -1795,7 +1795,7 @@ class spell_thorim_trash_impale : public SpellScriptLoader { PrepareAuraScript(spell_thorim_trash_impale_AuraScript); - void OnPeriodic(AuraEffect const* aurEff) + void OnPeriodic(AuraEffect const* /*aurEff*/) { // deals damage until target is healed above 90% if (GetUnitOwner()->HealthAbovePct(90)) diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp index 88a315f6e..3498289fe 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp @@ -225,7 +225,7 @@ public: } } - void JustDied(Unit *victim) + void JustDied(Unit * /*victim*/) { me->MonsterYell("You are bad... Toys... Very... Baaaaad!", LANG_UNIVERSAL, 0); me->PlayDirectSound(XT_SOUND_DEATH); @@ -531,7 +531,7 @@ public: } } - void JustDied(Unit *victim) + void JustDied(Unit * /*victim*/) { me->SetVisible(false); if (me->GetInstanceScript()) @@ -598,7 +598,7 @@ public: } // tc idiots, they use updateAI, while we have movementinform :) - void MovementInform(uint32 type, uint32 param) + void MovementInform(uint32 type, uint32 /*param*/) { if (type == POINT_MOTION_TYPE) { @@ -623,7 +623,7 @@ public: } } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!_locked) { @@ -798,7 +798,7 @@ public: } // tc idiots, they use updateAI, while we have movementinform :) - void MovementInform(uint32 type, uint32 param) + void MovementInform(uint32 type, uint32 /*param*/) { if (type == POINT_MOTION_TYPE) { @@ -810,7 +810,7 @@ public: // _kill = true; } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!_locked) { @@ -853,7 +853,7 @@ public: me->DespawnOrUnsummon(); } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!UpdateVictim()) return; @@ -1054,7 +1054,7 @@ class achievement_xt002_nerf_engineering : public AchievementCriteriaScript public: achievement_xt002_nerf_engineering() : AchievementCriteriaScript("achievement_xt002_nerf_engineering") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { if (target) if (InstanceScript* instance = target->GetInstanceScript()) @@ -1070,7 +1070,7 @@ class achievement_xt002_nerf_gravity_bombs : public AchievementCriteriaScript public: achievement_xt002_nerf_gravity_bombs() : AchievementCriteriaScript("achievement_xt002_nerf_gravity_bombs") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { if (target) if (InstanceScript* instance = target->GetInstanceScript()) diff --git a/src/scripts/Northrend/Ulduar/Ulduar/boss_yoggsaron.cpp b/src/scripts/Northrend/Ulduar/Ulduar/boss_yoggsaron.cpp index 4fa7fdd7f..7b7e77bdb 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/boss_yoggsaron.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/boss_yoggsaron.cpp @@ -885,9 +885,9 @@ public: sara->AI()->JustSummoned(cr); } - void MoveInLineOfSight(Unit* who) {} - void AttackStart(Unit* who) {} - void WaypointReached(uint32 point) {} + void MoveInLineOfSight(Unit* /*who*/) {} + void AttackStart(Unit* /*who*/) {} + void WaypointReached(uint32 /*point*/) {} void Reset() { @@ -1044,7 +1044,7 @@ public: me->SummonCreature(NPC_IMMORTAL_GUARDIAN, me->GetPositionX()+dist*cos(o), me->GetPositionY()+dist*sin(o), 327.2+Zplus, 0, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 5000); } - void JustDied(Unit* who) + void JustDied(Unit* /*who*/) { summons.DespawnAll(); events.Reset(); @@ -1133,7 +1133,7 @@ public: return 0; } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->Id == SPELL_IN_THE_MAWS_OF_THE_OLD_GOD) me->AddLootMode(32); @@ -1488,7 +1488,7 @@ public: me->RemoveAura(SPELL_SHATTERED_ILLUSION); } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!UpdateVictim()) return; @@ -1551,7 +1551,7 @@ public: return target; } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (me->HasUnitState(UNIT_STATE_CASTING)) return; @@ -2309,7 +2309,7 @@ class spell_yogg_saron_brain_link : public SpellScriptLoader _targetGUID = target->GetGUID(); } - void OnPeriodic(AuraEffect const* aurEff) + void OnPeriodic(AuraEffect const* /*aurEff*/) { Unit* owner = GetUnitOwner(); Unit* _target = ObjectAccessor::GetUnit(*owner, _targetGUID); @@ -2542,7 +2542,7 @@ class spell_yogg_saron_empowered : public SpellScriptLoader { PrepareAuraScript(spell_yogg_saron_empowered_AuraScript); - void OnPeriodic(AuraEffect const* aurEff) + void OnPeriodic(AuraEffect const* /*aurEff*/) { Unit* target = GetUnitOwner(); uint8 stack = std::min(uint8(target->GetHealthPct()/10), (uint8)9); @@ -2660,7 +2660,7 @@ class spell_yogg_saron_sanity_well : public SpellScriptLoader amplitude = 2*IN_MILLISECONDS; } - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { Unit* target = GetTarget(); if (!target || target->GetTypeId() != TYPEID_PLAYER) @@ -2873,7 +2873,7 @@ class achievement_yogg_saron_drive_me_crazy : public AchievementCriteriaScript public: achievement_yogg_saron_drive_me_crazy() : AchievementCriteriaScript("achievement_yogg_saron_drive_me_crazy") {} - bool OnCheck(Player* player, Unit* target) + bool OnCheck(Player* /*player*/, Unit* target) { return target && target->GetAI()->GetData(DATA_GET_DRIVE_ME_CRAZY); // target = Yogg-Saron } @@ -2887,7 +2887,7 @@ class achievement_yogg_saron_darkness : public AchievementCriteriaScript { } - bool OnCheck(Player* player, Unit* target /*Yogg-Saron*/) + bool OnCheck(Player* player, Unit* /*target*/ /*Yogg-Saron*/) { if (player->GetInstanceScript()) if (Creature* sara = ObjectAccessor::GetCreature(*player, player->GetInstanceScript()->GetData64(NPC_SARA))) @@ -2908,7 +2908,7 @@ class achievement_yogg_saron_he_waits_dreaming : public AchievementCriteriaScrip { } - bool OnCheck(Player* player, Unit* target /*Yogg-Saron*/) + bool OnCheck(Player* player, Unit* /*target*/ /*Yogg-Saron*/) { if (player->GetInstanceScript()) if (Creature* sara = ObjectAccessor::GetCreature(*player, player->GetInstanceScript()->GetData64(NPC_BRAIN_OF_YOGG_SARON))) @@ -2927,7 +2927,7 @@ class achievement_yogg_saron_kiss_and_make_up : public AchievementCriteriaScript public: achievement_yogg_saron_kiss_and_make_up() : AchievementCriteriaScript("achievement_yogg_saron_kiss_and_make_up") {} - bool OnCheck(Player* player, Unit* target /*Sara*/) + bool OnCheck(Player* /*player*/, Unit* target /*Sara*/) { return target && target->GetEntry() == NPC_SARA && target->GetAI() && target->GetAI()->GetData(DATA_GET_SARA_PHASE); } diff --git a/src/scripts/Northrend/Ulduar/Ulduar/instance_ulduar.cpp b/src/scripts/Northrend/Ulduar/Ulduar/instance_ulduar.cpp index 92ad8661e..6fbd1a2be 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/instance_ulduar.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/instance_ulduar.cpp @@ -219,7 +219,7 @@ public: return false; } - void ProcessEvent(WorldObject* obj, uint32 eventId) + void ProcessEvent(WorldObject* /*obj*/, uint32 eventId) { // destory towers if (eventId >= EVENT_TOWER_OF_LIFE_DESTROYED && eventId <= EVENT_TOWER_OF_FLAMES_DESTROYED) @@ -1012,7 +1012,7 @@ public: void SpawnLeviathanEncounterVehicles(uint8 mode); - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch (criteria_id) { diff --git a/src/scripts/Northrend/Ulduar/Ulduar/ulduar.cpp b/src/scripts/Northrend/Ulduar/Ulduar/ulduar.cpp index 17ec69141..cd0ce6294 100644 --- a/src/scripts/Northrend/Ulduar/Ulduar/ulduar.cpp +++ b/src/scripts/Northrend/Ulduar/Ulduar/ulduar.cpp @@ -62,7 +62,7 @@ public: return true; } - bool OnGossipSelect(Player* player, GameObject* go, uint32 sender, uint32 action) + bool OnGossipSelect(Player* player, GameObject* /*go*/, uint32 sender, uint32 action) { if (sender != GOSSIP_SENDER_MAIN || !player->getAttackers().empty()) return true; @@ -114,7 +114,7 @@ public: return true; } - bool OnGossipSelect(Player* player, Creature* creature, uint32 uiSender, uint32 uiAction) + bool OnGossipSelect(Player* /*player*/, Creature* creature, uint32 /*uiSender*/, uint32 /*uiAction*/) { creature->SetUInt32Value(UNIT_NPC_FLAGS, 0); uint8 _keeper = 0; @@ -221,7 +221,7 @@ public: } } - void UpdateAI(uint32 diff) {} + void UpdateAI(uint32 /*diff*/) {} }; }; @@ -343,7 +343,7 @@ public: events.ScheduleEvent(3, 1000); // Charged Leap } - void PassengerBoarded(Unit* p, int8 seat, bool apply) + void PassengerBoarded(Unit* p, int8 /*seat*/, bool /*apply*/) { me->setFaction(p->getFaction()); me->SetReactState(REACT_PASSIVE); @@ -378,7 +378,7 @@ public: ScriptedAI::EnterEvadeMode(); } - void OnCharmed(bool apply) {} + void OnCharmed(bool /*apply*/) {} void UpdateAI(uint32 diff) { @@ -438,7 +438,7 @@ public: { PrepareAuraScript(spell_ulduar_arachnopod_damaged_AuraScript) - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { if (Unit* c = GetCaster()) Unit::Kill(c, c, false); diff --git a/src/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_keleseth.cpp b/src/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_keleseth.cpp index 3bb831bf4..816db299a 100644 --- a/src/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_keleseth.cpp +++ b/src/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_keleseth.cpp @@ -84,7 +84,7 @@ public: me->DespawnOrUnsummon(5000); } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (PrisonerGUID) { diff --git a/src/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_skarvald_dalronn.cpp b/src/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_skarvald_dalronn.cpp index 2426ad36f..26ff5be0e 100644 --- a/src/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_skarvald_dalronn.cpp +++ b/src/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_skarvald_dalronn.cpp @@ -127,7 +127,7 @@ public: Talk(YELL_SKARVALD_KILL); } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { if( me->GetEntry() != NPC_SKARVALD ) return; @@ -280,7 +280,7 @@ public: summons.Summon(s); } - void JustDied(Unit* Killer) + void JustDied(Unit* /*Killer*/) { if( me->GetEntry() != NPC_DALRONN ) return; diff --git a/src/scripts/Northrend/UtgardeKeep/UtgardeKeep/instance_utgarde_keep.cpp b/src/scripts/Northrend/UtgardeKeep/UtgardeKeep/instance_utgarde_keep.cpp index f45182fbc..acbbd3003 100644 --- a/src/scripts/Northrend/UtgardeKeep/UtgardeKeep/instance_utgarde_keep.cpp +++ b/src/scripts/Northrend/UtgardeKeep/UtgardeKeep/instance_utgarde_keep.cpp @@ -341,7 +341,7 @@ public: OUT_LOAD_INST_DATA_COMPLETE; } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_palehoof.cpp b/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_palehoof.cpp index 1f08675ae..887fe986d 100644 --- a/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_palehoof.cpp +++ b/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_palehoof.cpp @@ -198,7 +198,7 @@ public: events.RescheduleEvent(EVENT_UNFREEZE_MONSTER, 3000); } } - void EnterCombat(Unit* pWho) + void EnterCombat(Unit* /*pWho*/) { if (m_pInstance) m_pInstance->SetData(DATA_GORTOK_PALEHOOF, IN_PROGRESS); @@ -310,7 +310,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* pKiller) + void JustDied(Unit* /*pKiller*/) { me->SendPlaySound(SOUND_DEATH, false); if(m_pInstance) @@ -444,7 +444,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* pKiller) + void JustDied(Unit* /*pKiller*/) { if (m_pInstance) { @@ -554,7 +554,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* pKiller) + void JustDied(Unit* /*pKiller*/) { if (m_pInstance) { @@ -662,7 +662,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* pKiller) + void JustDied(Unit* /*pKiller*/) { if (m_pInstance) { @@ -770,7 +770,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* pKiller) + void JustDied(Unit* /*pKiller*/) { if (m_pInstance) { @@ -786,7 +786,7 @@ class go_palehoof_sphere : public GameObjectScript public: go_palehoof_sphere() : GameObjectScript("go_palehoof_sphere") { } - bool OnGossipHello(Player *pPlayer, GameObject *pGO) + bool OnGossipHello(Player * /*pPlayer*/, GameObject *pGO) { InstanceScript *pInstance = pGO->GetInstanceScript(); diff --git a/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_skadi.cpp b/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_skadi.cpp index 62e732714..f3d398446 100644 --- a/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_skadi.cpp +++ b/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_skadi.cpp @@ -146,7 +146,7 @@ public: Creature *GetGrauf() { return ObjectAccessor::GetCreature(*me, GraufGUID); } - void EnterCombat(Unit* pWho) + void EnterCombat(Unit* /*pWho*/) { if (!EventStarted) { @@ -234,7 +234,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* pKiller) + void JustDied(Unit* /*pKiller*/) { summons.DespawnAll(); Talk(SAY_DEATH); @@ -246,7 +246,7 @@ public: } } - void KilledUnit(Unit* pVictim) + void KilledUnit(Unit* /*pVictim*/) { if (urand(0,1)) return; @@ -340,7 +340,7 @@ public: } } - void MovementInform(uint32 uiType, uint32 Id) + void MovementInform(uint32 /*uiType*/, uint32 Id) { switch(Id) { diff --git a/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_ymiron.cpp b/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_ymiron.cpp index 892e0a2f4..50ca2c08f 100644 --- a/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_ymiron.cpp +++ b/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_ymiron.cpp @@ -153,7 +153,7 @@ public: ScriptedAI::EnterEvadeMode(); } - void EnterCombat(Unit* pWho) + void EnterCombat(Unit* /*pWho*/) { Talk(SAY_AGGRO); if(pInstance) @@ -315,7 +315,7 @@ public: DoMeleeAttackIfReady(); } - void JustDied(Unit* pKiller) + void JustDied(Unit* /*pKiller*/) { Talk(SAY_DEATH); summons.DespawnAll(); @@ -325,7 +325,7 @@ public: pInstance->SetData(DATA_KING_YMIRON, DONE); } - void KilledUnit(Unit* pVictim) + void KilledUnit(Unit* /*pVictim*/) { if (urand(0,1)) return; diff --git a/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/instance_utgarde_pinnacle.cpp b/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/instance_utgarde_pinnacle.cpp index d6b0446ac..b2a5bb3fb 100644 --- a/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/instance_utgarde_pinnacle.cpp +++ b/src/scripts/Northrend/UtgardeKeep/UtgardePinnacle/instance_utgarde_pinnacle.cpp @@ -118,7 +118,7 @@ public: } } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/VaultOfArchavon/boss_emalon.cpp b/src/scripts/Northrend/VaultOfArchavon/boss_emalon.cpp index b5e945196..d6a05807a 100644 --- a/src/scripts/Northrend/VaultOfArchavon/boss_emalon.cpp +++ b/src/scripts/Northrend/VaultOfArchavon/boss_emalon.cpp @@ -119,7 +119,7 @@ class boss_emalon : public CreatureScript target->SetFullHealth(); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.Reset(); if (summons.size() < 4) @@ -201,7 +201,7 @@ class spell_voa_overcharge : public SpellScriptLoader { PrepareAuraScript(spell_voa_overcharge_AuraScript); - void HandlePeriodicDummy(AuraEffect const* aurEff) + void HandlePeriodicDummy(AuraEffect const* /*aurEff*/) { Unit* target = GetTarget(); if (target->GetTypeId() == TYPEID_UNIT && GetAura()->GetStackAmount() >= 10) diff --git a/src/scripts/Northrend/VioletHold/boss_ichoron.cpp b/src/scripts/Northrend/VioletHold/boss_ichoron.cpp index 7ee6d00b4..23aaf8df0 100644 --- a/src/scripts/Northrend/VioletHold/boss_ichoron.cpp +++ b/src/scripts/Northrend/VioletHold/boss_ichoron.cpp @@ -314,7 +314,7 @@ public: InstanceScript* pInstance; uint32 uiRangeCheck_Timer; - void SpellHit(Unit* caster, const SpellInfo* spell) + void SpellHit(Unit* /*caster*/, const SpellInfo* spell) { if (spell->Id == SPELL_CREATE_GLOBULE_VISUAL) me->CastSpell(me, SPELL_WATER_GLOBULE, true); diff --git a/src/scripts/Northrend/VioletHold/instance_violet_hold.cpp b/src/scripts/Northrend/VioletHold/instance_violet_hold.cpp index ef8d16c82..d62f9b659 100644 --- a/src/scripts/Northrend/VioletHold/instance_violet_hold.cpp +++ b/src/scripts/Northrend/VioletHold/instance_violet_hold.cpp @@ -634,7 +634,7 @@ public: events.RescheduleEvent(EVENT_CHECK_PLAYERS, CLEANUP_CHECK_INTERVAL); } - bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* source, Unit const* target = NULL, uint32 miscvalue1 = 0) + bool CheckAchievementCriteriaMeet(uint32 criteria_id, Player const* /*source*/, Unit const* /*target*/, uint32 /*miscvalue1*/) { switch(criteria_id) { diff --git a/src/scripts/Northrend/VioletHold/violet_hold.cpp b/src/scripts/Northrend/VioletHold/violet_hold.cpp index 6d7362d2c..7ac9e42d9 100644 --- a/src/scripts/Northrend/VioletHold/violet_hold.cpp +++ b/src/scripts/Northrend/VioletHold/violet_hold.cpp @@ -20,7 +20,7 @@ class go_vh_activation_crystal : public GameObjectScript public: go_vh_activation_crystal() : GameObjectScript("go_vh_activation_crystal") { } - bool OnGossipHello(Player* pPlayer, GameObject* pGo) + bool OnGossipHello(Player* /*pPlayer*/, GameObject* pGo) { if (InstanceScript* pInstance = pGo->GetInstanceScript()) pInstance->SetData(DATA_ACTIVATE_DEFENSE_SYSTEM, 1); @@ -1119,7 +1119,7 @@ public: { PrepareAuraScript(spell_destroy_door_sealAuraScript) - void HandleEffectPeriodic(AuraEffect const * aurEff) + void HandleEffectPeriodic(AuraEffect const * /*aurEff*/) { PreventDefaultAction(); if (Unit* target = GetTarget()) diff --git a/src/scripts/Northrend/isle_of_conquest.cpp b/src/scripts/Northrend/isle_of_conquest.cpp index 08c054d9c..5bd0cd5bf 100644 --- a/src/scripts/Northrend/isle_of_conquest.cpp +++ b/src/scripts/Northrend/isle_of_conquest.cpp @@ -242,7 +242,7 @@ class boss_isle_of_conquest : public CreatureScript } } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.ScheduleEvent(EVENT_CHECK_RAGE, 2000); events.ScheduleEvent(EVENT_BRUTAL_STRIKE, 6000); @@ -336,7 +336,7 @@ class spell_ioc_bomb_blast_criteria : public SpellScriptLoader { PrepareSpellScript(spell_ioc_bomb_blast_criteria_SpellScript); - void HandleGameObjectDamage(SpellEffIndex effIndex) + void HandleGameObjectDamage(SpellEffIndex /*effIndex*/) { Unit* owner = GetCaster()->GetOwner(); if (!owner) diff --git a/src/scripts/Northrend/zone_crystalsong_forest.cpp b/src/scripts/Northrend/zone_crystalsong_forest.cpp index 4ecab7e4e..c6101dc6a 100644 --- a/src/scripts/Northrend/zone_crystalsong_forest.cpp +++ b/src/scripts/Northrend/zone_crystalsong_forest.cpp @@ -71,7 +71,7 @@ class npc_preparations_for_war_vehicle : public CreatureScript transportEntry = (me->GetEntry() == NPC_HAMMERHEAD ? TRANSPORT_ORGRIMS_HAMMER : TRANSPORT_THE_SKYBREAKER); } - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 type, uint32 /*id*/) { if (type == ESCORT_MOTION_TYPE) if (++pointId == 17) // path size diff --git a/src/scripts/Northrend/zone_dalaran.cpp b/src/scripts/Northrend/zone_dalaran.cpp index 19cdcb5e8..367b5231f 100644 --- a/src/scripts/Northrend/zone_dalaran.cpp +++ b/src/scripts/Northrend/zone_dalaran.cpp @@ -138,7 +138,7 @@ public: _aquanosGUID = 0; } - void SetData(uint32 type, uint32 data) + void SetData(uint32 type, uint32 /*data*/) { switch(type) { diff --git a/src/scripts/Northrend/zone_dragonblight.cpp b/src/scripts/Northrend/zone_dragonblight.cpp index fa92e33d8..53cbacbd6 100644 --- a/src/scripts/Northrend/zone_dragonblight.cpp +++ b/src/scripts/Northrend/zone_dragonblight.cpp @@ -477,7 +477,7 @@ public: AttackStart(who); } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!UpdateVictim()) return; @@ -788,7 +788,7 @@ public: me->GetMotionMaster()->Clear(); } - void SetGUID(uint64 guid, int32 id) + void SetGUID(uint64 guid, int32 /*id*/) { if (playerGUID || events.GetNextEventTime(998) || events.GetNextEventTime(2)) return; @@ -1224,7 +1224,7 @@ public: bool done; - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!done) { diff --git a/src/scripts/Northrend/zone_grizzly_hills.cpp b/src/scripts/Northrend/zone_grizzly_hills.cpp index 10d4c5b89..d847aba9b 100644 --- a/src/scripts/Northrend/zone_grizzly_hills.cpp +++ b/src/scripts/Northrend/zone_grizzly_hills.cpp @@ -37,7 +37,7 @@ public: void EnterCombat(Unit* /*who*/) {} void EnterEvadeMode() {} - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (me->GetDistance(2763, -1596, 0) < 20.0f) // Horde ship { diff --git a/src/scripts/Northrend/zone_howling_fjord.cpp b/src/scripts/Northrend/zone_howling_fjord.cpp index 09d092452..c32010f32 100644 --- a/src/scripts/Northrend/zone_howling_fjord.cpp +++ b/src/scripts/Northrend/zone_howling_fjord.cpp @@ -40,7 +40,7 @@ public: me->GetMotionMaster()->MovePoint(0, *owner); } - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 /*type*/, uint32 /*id*/) { if (Creature* cow = me->FindNearestCreature(24797, 5.0f, true)) { diff --git a/src/scripts/Northrend/zone_icecrown.cpp b/src/scripts/Northrend/zone_icecrown.cpp index 2fd6daccd..a3ac53d19 100644 --- a/src/scripts/Northrend/zone_icecrown.cpp +++ b/src/scripts/Northrend/zone_icecrown.cpp @@ -665,7 +665,7 @@ class npc_tirions_gambit_tirion : public CreatureScript public: npc_tirions_gambit_tirion(): CreatureScript("npc_tirions_gambit_tirion"){} - bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/) { player->CLOSE_GOSSIP_MENU(); creature->AI()->DoAction(ACTION_START_EVENT); diff --git a/src/scripts/Northrend/zone_sholazar_basin.cpp b/src/scripts/Northrend/zone_sholazar_basin.cpp index 46e78224f..5d0e2c5da 100644 --- a/src/scripts/Northrend/zone_sholazar_basin.cpp +++ b/src/scripts/Northrend/zone_sholazar_basin.cpp @@ -143,7 +143,7 @@ public: ScriptedAI::MoveInLineOfSight(who); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { me->MonsterYell("Ah, the heroes. Your little friends said you would come. This certainly saves me the trouble of hunting you down myself.", LANG_UNIVERSAL, 0); me->CastSpell(me, SPELL_ARTRUIS_ICY_VEINS, true); @@ -461,7 +461,7 @@ public: return true; } - bool OnGossipSelect(Player* player, Creature* creature, uint32 uiSender, uint32 uiAction) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction) { if (!player) return true; @@ -1382,7 +1382,7 @@ public: } } - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 type, uint32 /*id*/) { if (type != ESCORT_MOTION_TYPE) return; diff --git a/src/scripts/Northrend/zone_storm_peaks.cpp b/src/scripts/Northrend/zone_storm_peaks.cpp index a755584f8..a3bbc43a9 100644 --- a/src/scripts/Northrend/zone_storm_peaks.cpp +++ b/src/scripts/Northrend/zone_storm_peaks.cpp @@ -130,7 +130,7 @@ public: me->SetControlled(false, UNIT_STATE_STUNNED); } - void MovementInform(uint32 type, uint32 pointId) + void MovementInform(uint32 type, uint32 /*pointId*/) { if (type == POINT_MOTION_TYPE) me->SetControlled(true, UNIT_STATE_STUNNED); @@ -238,7 +238,7 @@ public: me->UpdateEntry(roll_chance_i(25) ? NPC_TIME_LOST_PROTO_DRAKE : NPC_VYRAGOSA, 0, false); } - void WaypointReached(uint32 pointId) { } + void WaypointReached(uint32 /*pointId*/) { } void EnterCombat(Unit*) { @@ -394,7 +394,7 @@ public: } void AttackStart(Unit*) { } - void MoveInLineOfSight(Unit* who) { } + void MoveInLineOfSight(Unit* /*who*/) { } void OnCharmed(bool apply) { @@ -920,7 +920,7 @@ public: me->SetSpeed(MOVE_RUN, 2.0f); } - void MovementInform(uint32 type, uint32 id) + void MovementInform(uint32 type, uint32 /*id*/) { if (type == ESCORT_MOTION_TYPE && me->movespline->Finalized()) events.ScheduleEvent(EVENT_REACHED_HOME, 2000); diff --git a/src/scripts/Northrend/zone_wintergrasp.cpp b/src/scripts/Northrend/zone_wintergrasp.cpp index 3fc4ea557..e14c1197d 100644 --- a/src/scripts/Northrend/zone_wintergrasp.cpp +++ b/src/scripts/Northrend/zone_wintergrasp.cpp @@ -974,7 +974,7 @@ class spell_wintergrasp_hide_small_elementals : public SpellScriptLoader { PrepareAuraScript(spell_wintergrasp_hide_small_elementals_AuraScript); - void HandlePeriodicDummy(AuraEffect const* aurEff) + void HandlePeriodicDummy(AuraEffect const* /*aurEff*/) { Unit* target = GetTarget(); Battlefield* Bf = sBattlefieldMgr->GetBattlefieldToZoneId(target->GetZoneId()); @@ -1082,7 +1082,7 @@ class achievement_wg_within_our_grasp : public AchievementCriteriaScript public: achievement_wg_within_our_grasp() : AchievementCriteriaScript("achievement_wg_within_our_grasp") { } - bool OnCheck(Player* source, Unit* target) + bool OnCheck(Player* /*source*/, Unit* /*target*/) { Battlefield* wintergrasp = sBattlefieldMgr->GetBattlefieldByBattleId(BATTLEFIELD_BATTLEID_WG); if (!wintergrasp) diff --git a/src/scripts/Northrend/zone_zuldrak.cpp b/src/scripts/Northrend/zone_zuldrak.cpp index 47b0f44ed..88797fe36 100644 --- a/src/scripts/Northrend/zone_zuldrak.cpp +++ b/src/scripts/Northrend/zone_zuldrak.cpp @@ -476,7 +476,7 @@ public: aura->SetDuration(48000); } - void SpellHit(Unit* caster, const SpellInfo* spellInfo) + void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) { if (spellInfo->Id == SPELL_TOUCH_OF_DEATH) { @@ -671,7 +671,7 @@ public: DoCast(rageclaw, SPELL_RIGHT_CHAIN, true); } - void UnlockRageclaw(Unit* who, Creature* rageclaw) + void UnlockRageclaw(Unit* /*who*/, Creature* rageclaw) { // pointer check not needed DoCast(rageclaw, SPELL_FREE_RAGECLAW, true); diff --git a/src/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_shirrak_the_dead_watcher.cpp b/src/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_shirrak_the_dead_watcher.cpp index d69b0393f..8741ce2ad 100644 --- a/src/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_shirrak_the_dead_watcher.cpp +++ b/src/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_shirrak_the_dead_watcher.cpp @@ -191,7 +191,7 @@ class spell_auchenai_possess : public SpellScriptLoader amplitude = 2000; } - void Update(AuraEffect* effect) + void Update(AuraEffect* /*effect*/) { // Xinef: Charm is removed when target is at or below 50%hp if (Unit* owner = GetUnitOwner()) diff --git a/src/scripts/Outland/BlackTemple/boss_bloodboil.cpp b/src/scripts/Outland/BlackTemple/boss_bloodboil.cpp index 21b5eab92..2b07e6e4a 100644 --- a/src/scripts/Outland/BlackTemple/boss_bloodboil.cpp +++ b/src/scripts/Outland/BlackTemple/boss_bloodboil.cpp @@ -94,7 +94,7 @@ class boss_gurtogg_bloodboil : public CreatureScript events.ScheduleEvent(EVENT_SPELL_BERSERK, 600000); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) { diff --git a/src/scripts/Outland/BlackTemple/boss_illidan.cpp b/src/scripts/Outland/BlackTemple/boss_illidan.cpp index 8ae4ef648..fe7936321 100644 --- a/src/scripts/Outland/BlackTemple/boss_illidan.cpp +++ b/src/scripts/Outland/BlackTemple/boss_illidan.cpp @@ -326,7 +326,7 @@ class boss_illidan_stormrage : public CreatureScript void MoveInLineOfSight(Unit*) { } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE|UNIT_FLAG_NON_ATTACKABLE); summons.DespawnEntry(NPC_PARASITIC_SHADOWFIEND); @@ -334,7 +334,7 @@ class boss_illidan_stormrage : public CreatureScript instance->SaveToDB(); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) { @@ -791,7 +791,7 @@ class npc_akama_illidan : public CreatureScript summons.DespawnAll(); } - void sGossipSelect(Player* player, uint32 /*sender*/, uint32 action) + void sGossipSelect(Player* player, uint32 /*sender*/, uint32 /*action*/) { player->CLOSE_GOSSIP_MENU(); me->SetUInt32Value(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_NONE); @@ -1021,7 +1021,7 @@ class spell_illidan_parasitic_shadowfiend : public SpellScriptLoader { PrepareAuraScript(spell_illidan_parasitic_shadowfiend_AuraScript) - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (!GetTarget()->HasAura(SPELL_SHADOW_PRISON) && GetTarget()->GetInstanceScript() && GetTarget()->GetInstanceScript()->IsEncounterInProgress()) GetTarget()->CastSpell(GetTarget(), SPELL_SUMMON_PARASITIC_SHADOWFIENDS, true); @@ -1048,7 +1048,7 @@ class spell_illidan_parasitic_shadowfiend_trigger : public SpellScriptLoader { PrepareAuraScript(spell_illidan_parasitic_shadowfiend_trigger_AuraScript) - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (!GetTarget()->HasAura(SPELL_SHADOW_PRISON) && GetTarget()->GetInstanceScript() && GetTarget()->GetInstanceScript()->IsEncounterInProgress()) GetTarget()->CastSpell(GetTarget(), SPELL_SUMMON_PARASITIC_SHADOWFIENDS, true); @@ -1125,7 +1125,7 @@ class spell_illidan_tear_of_azzinoth_summon_channel : public SpellScriptLoader { PrepareAuraScript(spell_illidan_tear_of_azzinoth_summon_channel_AuraScript); - void OnPeriodic(AuraEffect const* aurEff) + void OnPeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); if (Unit* caster = GetCaster()) @@ -1200,7 +1200,7 @@ class spell_illidan_demon_transform1 : public SpellScriptLoader return GetUnitOwner()->GetTypeId() == TYPEID_UNIT; } - void OnPeriodic(AuraEffect const* aurEff) + void OnPeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); SetDuration(0); @@ -1378,7 +1378,7 @@ class spell_illidan_cage_trap_stun : public SpellScriptLoader { PrepareAuraScript(spell_illidan_cage_trap_stun_AuraScript); - void OnPeriodic(AuraEffect const* aurEff) + void OnPeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); SetDuration(0); diff --git a/src/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp b/src/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp index 82ce61cf8..b02872ec4 100644 --- a/src/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp +++ b/src/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp @@ -222,7 +222,7 @@ class spell_mother_shahraz_saber_lash : public SpellScriptLoader { PrepareAuraScript(spell_mother_shahraz_saber_lash_AuraScript); - bool CheckProc(ProcEventInfo& eventInfo) + bool CheckProc(ProcEventInfo& /*eventInfo*/) { return false; } @@ -275,7 +275,7 @@ class spell_mother_shahraz_fatal_attraction : public SpellScriptLoader } } - void HandleTeleportUnits(SpellEffIndex effIndex) + void HandleTeleportUnits(SpellEffIndex /*effIndex*/) { if (Unit* target = GetHitUnit()) GetCaster()->CastSpell(target, SPELL_FATAL_ATTRACTION_AURA, true); @@ -304,7 +304,7 @@ class spell_mother_shahraz_fatal_attraction_dummy : public SpellScriptLoader { PrepareSpellScript(spell_mother_shahraz_fatal_attraction_dummy_SpellScript); - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { if (Unit* target = GetHitUnit()) { diff --git a/src/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp b/src/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp index d550f1a7e..8a4baf5b9 100644 --- a/src/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp +++ b/src/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp @@ -511,7 +511,7 @@ class boss_essence_of_anger : public CreatureScript } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { Talk(ANGER_SAY_DEATH); if (me->IsSummon()) @@ -677,7 +677,7 @@ class spell_reliquary_of_souls_aura_of_desire : public SpellScriptLoader amount = std::max(-100, -5*int32(effect->GetTickNumber())); } - void Update(AuraEffect const* effect) + void Update(AuraEffect const* /*effect*/) { PreventDefaultAction(); if (AuraEffect* effect = GetAura()->GetEffect(EFFECT_1)) @@ -708,13 +708,13 @@ class spell_reliquary_of_souls_aura_of_anger : public SpellScriptLoader { PrepareAuraScript(spell_reliquary_of_souls_aura_of_anger_AuraScript); - void CalculateAmount(AuraEffect const* aurEff, int32& amount, bool& /*canBeRecalculated*/) + void CalculateAmount(AuraEffect const* /*aurEff*/, int32& amount, bool& /*canBeRecalculated*/) { if (AuraEffect* effect = GetAura()->GetEffect(EFFECT_0)) amount = amount*effect->GetTickNumber(); } - void Update(AuraEffect const* effect) + void Update(AuraEffect const* /*effect*/) { if (AuraEffect* effect = GetAura()->GetEffect(EFFECT_0)) effect->RecalculateAmount(); diff --git a/src/scripts/Outland/BlackTemple/boss_shade_of_akama.cpp b/src/scripts/Outland/BlackTemple/boss_shade_of_akama.cpp index a8ac74cfe..c6799b1dd 100644 --- a/src/scripts/Outland/BlackTemple/boss_shade_of_akama.cpp +++ b/src/scripts/Outland/BlackTemple/boss_shade_of_akama.cpp @@ -553,13 +553,13 @@ class spell_shade_of_akama_shade_soul_channel : public SpellScriptLoader { PrepareAuraScript(spell_shade_of_akama_shade_soul_channel_AuraScript) - void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (Unit* caster = GetCaster()) caster->SetFacingToObject(GetTarget()); } - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (Aura* aura = GetTarget()->GetAura(GetSpellInfo()->Effects[EFFECT_1].TriggerSpell)) aura->ModStackAmount(-1); diff --git a/src/scripts/Outland/BlackTemple/boss_teron_gorefiend.cpp b/src/scripts/Outland/BlackTemple/boss_teron_gorefiend.cpp index cf16bb8f3..e8bd1e6d5 100644 --- a/src/scripts/Outland/BlackTemple/boss_teron_gorefiend.cpp +++ b/src/scripts/Outland/BlackTemple/boss_teron_gorefiend.cpp @@ -103,7 +103,7 @@ class boss_teron_gorefiend : public CreatureScript events.ScheduleEvent(EVENT_SPELL_SHADOW_OF_DEATH, 20000); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_TALK_KILL) == 0) { @@ -184,7 +184,7 @@ class spell_teron_gorefiend_shadow_of_death : public SpellScriptLoader { PrepareAuraScript(spell_teron_gorefiend_shadow_of_death_AuraScript) - void Absorb(AuraEffect* /*aurEff*/, DamageInfo & dmgInfo, uint32 & absorbAmount) + void Absorb(AuraEffect* /*aurEff*/, DamageInfo & /*dmgInfo*/, uint32 & /*absorbAmount*/) { PreventDefaultAction(); } @@ -232,7 +232,7 @@ class spell_teron_gorefiend_spirit_lance : public SpellScriptLoader amount -= (amount / effect->GetTotalTicks()) * effect->GetTickNumber(); } - void Update(AuraEffect const* effect) + void Update(AuraEffect const* /*effect*/) { PreventDefaultAction(); if (AuraEffect* effect = GetAura()->GetEffect(EFFECT_1)) diff --git a/src/scripts/Outland/BlackTemple/boss_warlord_najentus.cpp b/src/scripts/Outland/BlackTemple/boss_warlord_najentus.cpp index 72ebedcff..f0a0e448e 100644 --- a/src/scripts/Outland/BlackTemple/boss_warlord_najentus.cpp +++ b/src/scripts/Outland/BlackTemple/boss_warlord_najentus.cpp @@ -137,7 +137,7 @@ class spell_najentus_needle_spine : public SpellScriptLoader { PrepareSpellScript(spell_najentus_needle_spine_SpellScript); - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { if (Unit* target = GetHitUnit()) GetCaster()->CastSpell(target, SPELL_NEEDLE_SPINE_DAMAGE, true); @@ -164,7 +164,7 @@ class spell_najentus_hurl_spine : public SpellScriptLoader { PrepareSpellScript(spell_najentus_hurl_spine_SpellScript); - void HandleSchoolDamage(SpellEffIndex effIndex) + void HandleSchoolDamage(SpellEffIndex /*effIndex*/) { Unit* target = GetHitUnit(); if (target && target->HasAura(SPELL_TIDAL_SHIELD)) diff --git a/src/scripts/Outland/BlackTemple/illidari_council.cpp b/src/scripts/Outland/BlackTemple/illidari_council.cpp index 2bb81ceb2..fecb6f28d 100644 --- a/src/scripts/Outland/BlackTemple/illidari_council.cpp +++ b/src/scripts/Outland/BlackTemple/illidari_council.cpp @@ -194,7 +194,7 @@ public: } } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!me->isActiveObject()) return; @@ -256,7 +256,7 @@ struct boss_illidari_council_memberAI : public ScriptedAI council->GetAI()->DoAction(ACTION_END_ENCOUNTER); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { if (Creature* council = ObjectAccessor::GetCreature(*me, instance->GetData64(NPC_ILLIDARI_COUNCIL))) council->GetAI()->DoAction(ACTION_START_ENCOUNTER); diff --git a/src/scripts/Outland/BlackTemple/instance_black_temple.cpp b/src/scripts/Outland/BlackTemple/instance_black_temple.cpp index c5af0c5c5..ccb78d99d 100644 --- a/src/scripts/Outland/BlackTemple/instance_black_temple.cpp +++ b/src/scripts/Outland/BlackTemple/instance_black_temple.cpp @@ -379,7 +379,7 @@ class spell_black_temple_curse_of_the_bleakheart : public SpellScriptLoader amplitude = 5000; } - void Update(AuraEffect const* effect) + void Update(AuraEffect const* /*effect*/) { PreventDefaultAction(); if (roll_chance_i(20)) @@ -408,7 +408,7 @@ class spell_black_temple_skeleton_shot : public SpellScriptLoader { PrepareAuraScript(spell_black_temple_skeleton_shot_AuraScript) - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_DEATH) GetTarget()->CastSpell(GetTarget(), GetSpellInfo()->Effects[EFFECT_2].CalcValue(), true); @@ -435,7 +435,7 @@ class spell_black_temple_wyvern_sting : public SpellScriptLoader { PrepareAuraScript(spell_black_temple_wyvern_sting_AuraScript) - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (Unit* caster = GetCaster()) caster->CastSpell(GetTarget(), SPELL_WYVERN_STING, true); @@ -618,7 +618,7 @@ class spell_black_temple_curse_of_vitality : public SpellScriptLoader { PrepareAuraScript(spell_black_temple_curse_of_vitality_AuraScript); - void OnPeriodic(AuraEffect const* aurEff) + void OnPeriodic(AuraEffect const* /*aurEff*/) { if (GetUnitOwner()->HealthBelowPct(50)) SetDuration(0); @@ -645,7 +645,7 @@ class spell_black_temple_dementia : public SpellScriptLoader { PrepareAuraScript(spell_black_temple_dementia_AuraScript); - void OnPeriodic(AuraEffect const* aurEff) + void OnPeriodic(AuraEffect const* /*aurEff*/) { if (roll_chance_i(50)) GetTarget()->CastSpell(GetTarget(), SPELL_DEMENTIA1, true); diff --git a/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_hydross_the_unstable.cpp b/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_hydross_the_unstable.cpp index a7d02b06e..7a57ccaf2 100644 --- a/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_hydross_the_unstable.cpp +++ b/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_hydross_the_unstable.cpp @@ -281,14 +281,14 @@ class spell_hydross_cleansing_field_aura : public SpellScriptLoader { PrepareAuraScript(spell_hydross_cleansing_field_aura_AuraScript) - void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (GetTarget()->GetEntry() == NPC_HYDROSS_THE_UNSTABLE) if (Unit* caster = GetCaster()) caster->CastSpell(caster, SPELL_CLEANSING_FIELD, true); } - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (GetTarget()->GetEntry() == NPC_HYDROSS_THE_UNSTABLE) if (Unit* caster = GetCaster()) @@ -317,7 +317,7 @@ class spell_hydross_cleansing_field_command : public SpellScriptLoader { PrepareAuraScript(spell_hydross_cleansing_field_command_AuraScript) - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (GetTarget()->HasUnitState(UNIT_STATE_CASTING)) GetTarget()->InterruptNonMeleeSpells(false); @@ -346,7 +346,7 @@ class spell_hydross_mark_of_hydross : public SpellScriptLoader { PrepareAuraScript(spell_hydross_mark_of_hydross_AuraScript) - void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetTarget()->RemoveAurasByType(SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN, GetCasterGUID(), GetAura()); } diff --git a/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lady_vashj.cpp b/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lady_vashj.cpp index 544b5991d..2cdeea820 100644 --- a/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lady_vashj.cpp +++ b/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lady_vashj.cpp @@ -391,7 +391,7 @@ class spell_lady_vashj_magic_barrier : public SpellScriptLoader { PrepareAuraScript(spell_lady_vashj_magic_barrier_AuraScript) - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { Unit::DealDamage(GetTarget(), GetTarget(), GetTarget()->CountPctFromMaxHealth(5)); } diff --git a/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp b/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp index 246e35794..d99578c6d 100644 --- a/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp +++ b/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp @@ -116,7 +116,7 @@ class boss_leotheras_the_blind : public CreatureScript me->SummonCreature(NPC_GREYHEART_SPELLBINDER, channelersPos[i], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 5000); } - void MoveInLineOfSight(Unit* who) { } + void MoveInLineOfSight(Unit* /*who*/) { } void JustSummoned(Creature* summon) { @@ -143,7 +143,7 @@ class boss_leotheras_the_blind : public CreatureScript } } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_KILL_TALK) == 0) { @@ -420,12 +420,12 @@ class spell_leotheras_insidious_whisper : public SpellScriptLoader { PrepareAuraScript(spell_leotheras_insidious_whisper_AuraScript) - void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SUMMON_INNER_DEMON, true); } - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_DEFAULT) if (InstanceScript* instance = GetUnitOwner()->GetInstanceScript()) diff --git a/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lurker_below.cpp b/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lurker_below.cpp index b777f3db0..f52047d1a 100644 --- a/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lurker_below.cpp +++ b/src/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_lurker_below.cpp @@ -108,7 +108,7 @@ class boss_the_lurker_below : public CreatureScript events.ScheduleEvent(EVENT_PHASE_2, 125000); } - void MoveInLineOfSight(Unit* who) + void MoveInLineOfSight(Unit* /*who*/) { } diff --git a/src/scripts/Outland/CoilfangReservoir/SerpentShrine/instance_serpent_shrine.cpp b/src/scripts/Outland/CoilfangReservoir/SerpentShrine/instance_serpent_shrine.cpp index 1b0c86331..1bbc6e212 100644 --- a/src/scripts/Outland/CoilfangReservoir/SerpentShrine/instance_serpent_shrine.cpp +++ b/src/scripts/Outland/CoilfangReservoir/SerpentShrine/instance_serpent_shrine.cpp @@ -129,7 +129,7 @@ class instance_serpent_shrine : public InstanceMapScript return 0; } - void SetData(uint32 type, uint32 data) + void SetData(uint32 type, uint32 /*data*/) { switch (type) { @@ -229,7 +229,7 @@ class spell_serpentshrine_cavern_serpentshrine_parasite : public SpellScriptLoad { PrepareAuraScript(spell_serpentshrine_cavern_serpentshrine_parasite_AuraScript) - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (GetTarget()->GetInstanceScript() && GetTarget()->GetInstanceScript()->IsEncounterInProgress()) GetTarget()->CastSpell(GetTarget(), SPELL_SUMMON_SERPENTSHRINE_PARASITE, true); @@ -256,7 +256,7 @@ class spell_serpentshrine_cavern_serpentshrine_parasite_trigger : public SpellSc { PrepareAuraScript(spell_serpentshrine_cavern_serpentshrine_parasite_trigger_AuraScript) - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (GetTarget()->GetInstanceScript() && GetTarget()->GetInstanceScript()->IsEncounterInProgress()) GetTarget()->CastSpell(GetTarget(), SPELL_SUMMON_SERPENTSHRINE_PARASITE, true); @@ -338,7 +338,7 @@ class spell_serpentshrine_cavern_coilfang_water : public SpellScriptLoader { PrepareAuraScript(spell_serpentshrine_cavern_coilfang_water_AuraScript) - void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (InstanceScript* instance = GetUnitOwner()->GetInstanceScript()) if (instance->GetBossState(DATA_THE_LURKER_BELOW) != DONE) @@ -346,7 +346,7 @@ class spell_serpentshrine_cavern_coilfang_water : public SpellScriptLoader GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_SCALDING_WATER, true); } - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetUnitOwner()->RemoveAurasDueToSpell(SPELL_SCALDING_WATER); } @@ -362,7 +362,7 @@ class spell_serpentshrine_cavern_coilfang_water : public SpellScriptLoader } - void HandlePeriodic(AuraEffect const* aurEff) + void HandlePeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); InstanceScript* instance = GetUnitOwner()->GetInstanceScript(); diff --git a/src/scripts/Outland/CoilfangReservoir/SlavePens/boss_ahune.cpp b/src/scripts/Outland/CoilfangReservoir/SlavePens/boss_ahune.cpp index 614e2f3ec..44be4f14b 100644 --- a/src/scripts/Outland/CoilfangReservoir/SlavePens/boss_ahune.cpp +++ b/src/scripts/Outland/CoilfangReservoir/SlavePens/boss_ahune.cpp @@ -288,7 +288,7 @@ public: } } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { summons.DespawnAll(); me->DespawnOrUnsummon(15000); diff --git a/src/scripts/Outland/CoilfangReservoir/underbog/boss_the_black_stalker.cpp b/src/scripts/Outland/CoilfangReservoir/underbog/boss_the_black_stalker.cpp index 7a9270541..5a3ddeb9b 100644 --- a/src/scripts/Outland/CoilfangReservoir/underbog/boss_the_black_stalker.cpp +++ b/src/scripts/Outland/CoilfangReservoir/underbog/boss_the_black_stalker.cpp @@ -186,7 +186,7 @@ public: amplitude = urand(10*IN_MILLISECONDS, 200*IN_MILLISECONDS); } - void Update(AuraEffect* effect) + void Update(AuraEffect* /*effect*/) { SetDuration(0); } diff --git a/src/scripts/Outland/GruulsLair/boss_gruul.cpp b/src/scripts/Outland/GruulsLair/boss_gruul.cpp index 6d0ddb4f4..3d374c506 100644 --- a/src/scripts/Outland/GruulsLair/boss_gruul.cpp +++ b/src/scripts/Outland/GruulsLair/boss_gruul.cpp @@ -69,7 +69,7 @@ class boss_gruul : public CreatureScript events.ScheduleEvent(EVENT_GROUND_SLAM, 35000); } - void KilledUnit(Unit* who) + void KilledUnit(Unit* /*who*/) { if (events.GetNextEventTime(EVENT_RECENTLY_SPOKEN) == 0) { diff --git a/src/scripts/Outland/GruulsLair/boss_high_king_maulgar.cpp b/src/scripts/Outland/GruulsLair/boss_high_king_maulgar.cpp index baeda004a..17cc3e20f 100644 --- a/src/scripts/Outland/GruulsLair/boss_high_king_maulgar.cpp +++ b/src/scripts/Outland/GruulsLair/boss_high_king_maulgar.cpp @@ -77,7 +77,7 @@ public: me->SetLootMode(0); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_RECENTLY_SPOKEN) == 0) { diff --git a/src/scripts/Outland/GruulsLair/instance_gruuls_lair.cpp b/src/scripts/Outland/GruulsLair/instance_gruuls_lair.cpp index e9c4ec1c2..b35e16dee 100644 --- a/src/scripts/Outland/GruulsLair/instance_gruuls_lair.cpp +++ b/src/scripts/Outland/GruulsLair/instance_gruuls_lair.cpp @@ -101,7 +101,7 @@ class instance_gruuls_lair : public InstanceMapScript return true; } - void SetData(uint32 type, uint32 id) + void SetData(uint32 type, uint32 /*id*/) { if (type == DATA_ADDS_KILLED) if (Creature* maulgar = instance->GetCreature(_maulgarGUID)) diff --git a/src/scripts/Outland/HellfireCitadel/BloodFurnace/boss_kelidan_the_breaker.cpp b/src/scripts/Outland/HellfireCitadel/BloodFurnace/boss_kelidan_the_breaker.cpp index fef4ea5ac..8e23f708e 100644 --- a/src/scripts/Outland/HellfireCitadel/BloodFurnace/boss_kelidan_the_breaker.cpp +++ b/src/scripts/Outland/HellfireCitadel/BloodFurnace/boss_kelidan_the_breaker.cpp @@ -87,7 +87,7 @@ class boss_kelidan_the_breaker : public CreatureScript instance->SetData(DATA_KELIDAN, NOT_STARTED); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { events.ScheduleEvent(EVENT_SPELL_VOLLEY, 1000); events.ScheduleEvent(EVENT_SPELL_CORRUPTION, 5000); @@ -296,7 +296,7 @@ class npc_shadowmoon_channeler : public CreatureScript return NULL; } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { if (Creature* kelidan = GetKelidan()) kelidan->AI()->DoAction(ACTION_CHANNELER_ENGAGED); @@ -306,7 +306,7 @@ class npc_shadowmoon_channeler : public CreatureScript events.ScheduleEvent(EVENT_SPELL_MARK, urand(5000, 6500)); } - void JustDied(Unit* killer) + void JustDied(Unit* /*killer*/) { if (Creature* kelidan = GetKelidan()) kelidan->AI()->DoAction(ACTION_CHANNELER_DIED); diff --git a/src/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp b/src/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp index 61860611b..f73032c23 100644 --- a/src/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp +++ b/src/scripts/Outland/HellfireCitadel/HellfireRamparts/boss_vazruden_the_herald.cpp @@ -119,7 +119,7 @@ class boss_vazruden_the_herald : public CreatureScript BossAI::EnterEvadeMode(); } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!me->IsVisible() && summons.size() == 0) BossAI::EnterEvadeMode(); diff --git a/src/scripts/Outland/HellfireCitadel/MagtheridonsLair/boss_magtheridon.cpp b/src/scripts/Outland/HellfireCitadel/MagtheridonsLair/boss_magtheridon.cpp index c219ea872..18579172f 100644 --- a/src/scripts/Outland/HellfireCitadel/MagtheridonsLair/boss_magtheridon.cpp +++ b/src/scripts/Outland/HellfireCitadel/MagtheridonsLair/boss_magtheridon.cpp @@ -106,7 +106,7 @@ class boss_magtheridon : public CreatureScript me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE|UNIT_FLAG_IMMUNE_TO_PC); } - void KilledUnit(Unit* victim) + void KilledUnit(Unit* /*victim*/) { if (events.GetNextEventTime(EVENT_RECENTLY_SPOKEN) == 0) { diff --git a/src/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warchief_kargath_bladefist.cpp b/src/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warchief_kargath_bladefist.cpp index d015639b8..7b348c709 100644 --- a/src/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warchief_kargath_bladefist.cpp +++ b/src/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warchief_kargath_bladefist.cpp @@ -70,7 +70,7 @@ class boss_warchief_kargath_bladefist : public CreatureScript executioner->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { Talk(SAY_AGGRO); _EnterCombat(); diff --git a/src/scripts/Outland/TempestKeep/Eye/boss_alar.cpp b/src/scripts/Outland/TempestKeep/Eye/boss_alar.cpp index 1e9f86635..8c4b10ab3 100644 --- a/src/scripts/Outland/TempestKeep/Eye/boss_alar.cpp +++ b/src/scripts/Outland/TempestKeep/Eye/boss_alar.cpp @@ -359,7 +359,7 @@ class spell_alar_flame_quills : public SpellScriptLoader { PrepareAuraScript(spell_alar_flame_quills_AuraScript); - void HandlePeriodic(AuraEffect const* aurEff) + void HandlePeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); diff --git a/src/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp b/src/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp index 679ec59fe..4ee5a4208 100644 --- a/src/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp +++ b/src/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp @@ -750,7 +750,7 @@ class spell_kaelthas_remote_toy : public SpellScriptLoader { PrepareAuraScript(spell_kaelthas_remote_toy_AuraScript); - void HandlePeriodic(AuraEffect const* aurEff) + void HandlePeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); if (roll_chance_i(66)) @@ -859,7 +859,7 @@ class spell_kaelthas_burn : public SpellScriptLoader { PrepareAuraScript(spell_kaelthas_burn_AuraScript); - void HandlePeriodic(AuraEffect const* aurEff) + void HandlePeriodic(AuraEffect const* /*aurEff*/) { Unit::DealDamage(GetUnitOwner(), GetUnitOwner(), GetUnitOwner()->CountPctFromMaxHealth(5)+1); } diff --git a/src/scripts/Outland/TempestKeep/Eye/instance_the_eye.cpp b/src/scripts/Outland/TempestKeep/Eye/instance_the_eye.cpp index 6dfa5d2ec..e0ff41600 100644 --- a/src/scripts/Outland/TempestKeep/Eye/instance_the_eye.cpp +++ b/src/scripts/Outland/TempestKeep/Eye/instance_the_eye.cpp @@ -156,7 +156,7 @@ class spell_the_eye_countercharge : public SpellScriptLoader { PrepareAuraScript(spell_the_eye_counterchargeScript); - bool PrepareProc(ProcEventInfo& eventInfo) + bool PrepareProc(ProcEventInfo& /*eventInfo*/) { // xinef: prevent charge drop PreventDefaultAction(); diff --git a/src/scripts/Outland/TempestKeep/Mechanar/boss_nethermancer_sepethrea.cpp b/src/scripts/Outland/TempestKeep/Mechanar/boss_nethermancer_sepethrea.cpp index 78ba57581..c9ce1de89 100644 --- a/src/scripts/Outland/TempestKeep/Mechanar/boss_nethermancer_sepethrea.cpp +++ b/src/scripts/Outland/TempestKeep/Mechanar/boss_nethermancer_sepethrea.cpp @@ -38,7 +38,7 @@ class boss_nethermancer_sepethrea : public CreatureScript { boss_nethermancer_sepethreaAI(Creature* creature) : BossAI(creature, DATA_NETHERMANCER_SEPRETHREA) { } - void EnterCombat(Unit* who) + void EnterCombat(Unit* /*who*/) { _EnterCombat(); events.ScheduleEvent(EVENT_FROST_ATTACK, 6000); diff --git a/src/scripts/Outland/TempestKeep/Mechanar/boss_pathaleon_the_calculator.cpp b/src/scripts/Outland/TempestKeep/Mechanar/boss_pathaleon_the_calculator.cpp index 62356a783..699cdbc83 100644 --- a/src/scripts/Outland/TempestKeep/Mechanar/boss_pathaleon_the_calculator.cpp +++ b/src/scripts/Outland/TempestKeep/Mechanar/boss_pathaleon_the_calculator.cpp @@ -56,7 +56,7 @@ class boss_pathaleon_the_calculator : public CreatureScript me->SetReactState(REACT_PASSIVE); } - void DoAction(int32 param) + void DoAction(int32 /*param*/) { me->SetVisible(true); me->CastSpell(me, SPELL_TELEPORT_VISUAL, true); diff --git a/src/scripts/Outland/TempestKeep/arcatraz/instance_arcatraz.cpp b/src/scripts/Outland/TempestKeep/arcatraz/instance_arcatraz.cpp index c4127f3db..f167cacf9 100644 --- a/src/scripts/Outland/TempestKeep/arcatraz/instance_arcatraz.cpp +++ b/src/scripts/Outland/TempestKeep/arcatraz/instance_arcatraz.cpp @@ -110,7 +110,7 @@ class instance_arcatraz : public InstanceMapScript } } - uint32 GetData(uint32 type) const + uint32 GetData(uint32 /*type*/) const { return 0; } diff --git a/src/scripts/Outland/zone_blades_edge_mountains.cpp b/src/scripts/Outland/zone_blades_edge_mountains.cpp index c9325bccd..f2d172b93 100644 --- a/src/scripts/Outland/zone_blades_edge_mountains.cpp +++ b/src/scripts/Outland/zone_blades_edge_mountains.cpp @@ -113,7 +113,7 @@ class spell_npc22275_crystal_prison : public SpellScriptLoader { PrepareAuraScript(spell_npc22275_crystal_prison_AuraScript); - void OnPeriodic(AuraEffect const* aurEff) + void OnPeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); SetDuration(0); diff --git a/src/scripts/Outland/zone_nagrand.cpp b/src/scripts/Outland/zone_nagrand.cpp index f74fc6d53..0ed661c36 100644 --- a/src/scripts/Outland/zone_nagrand.cpp +++ b/src/scripts/Outland/zone_nagrand.cpp @@ -424,7 +424,7 @@ public: uint32 HealTimer; uint32 FrostShockTimer; - void SetGUID(uint64 guid, int32 questId) + void SetGUID(uint64 guid, int32 /*questId*/) { me->SetStandState(UNIT_STAND_STATE_STAND); Start(true, false, guid); diff --git a/src/scripts/Outland/zone_shadowmoon_valley.cpp b/src/scripts/Outland/zone_shadowmoon_valley.cpp index 0f17e8078..c603b2b6e 100644 --- a/src/scripts/Outland/zone_shadowmoon_valley.cpp +++ b/src/scripts/Outland/zone_shadowmoon_valley.cpp @@ -45,7 +45,7 @@ class spell_q10612_10613_the_fel_and_the_furious : public SpellScriptLoader { PrepareSpellScript(spell_q10612_10613_the_fel_and_the_furious_SpellScript); - void HandleScriptEffect(SpellEffIndex effIndex) + void HandleScriptEffect(SpellEffIndex /*effIndex*/) { Player* charmer = GetCaster()->GetCharmerOrOwnerPlayerOrPlayerItself(); if (!charmer) @@ -251,7 +251,7 @@ public: } } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!UpdateVictim()) return; diff --git a/src/scripts/Outland/zone_terokkar_forest.cpp b/src/scripts/Outland/zone_terokkar_forest.cpp index 495cb9b9f..9a9745ff5 100644 --- a/src/scripts/Outland/zone_terokkar_forest.cpp +++ b/src/scripts/Outland/zone_terokkar_forest.cpp @@ -176,7 +176,7 @@ class spell_q10036_torgos : public SpellScriptLoader { PrepareSpellScript(spell_q10036_torgos_SpellScript); - void HandleSendEvent(SpellEffIndex effIndex) + void HandleSendEvent(SpellEffIndex /*effIndex*/) { if (Creature* torgos = GetCaster()->FindNearestCreature(NPC_TORGOS, 100.0f, true)) torgos->GetAI()->AttackStart(GetCaster()); @@ -212,7 +212,7 @@ class spell_q10923_evil_draws_near_summon : public SpellScriptLoader { PrepareSpellScript(spell_q10923_evil_draws_near_summon_SpellScript); - void HandleSendEvent(SpellEffIndex effIndex) + void HandleSendEvent(SpellEffIndex /*effIndex*/) { if (Creature* auchenai = GetCaster()->FindNearestCreature(NPC_AUCHENAI_DEATH_SPIRIT, 10.0f, true)) auchenai->CastSpell(auchenai, SPELL_DUSTIN_UNDEAD_DRAGON_VISUAL_AURA, true); @@ -239,7 +239,7 @@ class spell_q10923_evil_draws_near_periodic : public SpellScriptLoader { PrepareAuraScript(spell_q10923_evil_draws_near_periodic_AuraScript); - void HandlePeriodic(AuraEffect const* aurEff) + void HandlePeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); GetUnitOwner()->CastSpell(GetUnitOwner(), RAND(SPELL_DUSTIN_UNDEAD_DRAGON_VISUAL1, SPELL_DUSTIN_UNDEAD_DRAGON_VISUAL2), true); diff --git a/src/scripts/Outland/zone_zangarmarsh.cpp b/src/scripts/Outland/zone_zangarmarsh.cpp index aca749ee5..8fb4aba97 100644 --- a/src/scripts/Outland/zone_zangarmarsh.cpp +++ b/src/scripts/Outland/zone_zangarmarsh.cpp @@ -47,7 +47,7 @@ public: return true; } - bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/) { player->PlayerTalkClass->ClearMenus(); player->CLOSE_GOSSIP_MENU(); diff --git a/src/scripts/Pet/pet_dk.cpp b/src/scripts/Pet/pet_dk.cpp index b4548ef2f..80267d798 100644 --- a/src/scripts/Pet/pet_dk.cpp +++ b/src/scripts/Pet/pet_dk.cpp @@ -220,7 +220,7 @@ class npc_pet_dk_ghoul : public CreatureScript { npc_pet_dk_ghoulAI(Creature *c) : CombatAI(c) { } - void JustDied(Unit *who) + void JustDied(Unit * /*who*/) { if (me->IsGuardian() || me->IsSummon()) me->ToTempSummon()->UnSummon(); diff --git a/src/scripts/Pet/pet_generic.cpp b/src/scripts/Pet/pet_generic.cpp index db843342a..6304cc8ec 100644 --- a/src/scripts/Pet/pet_generic.cpp +++ b/src/scripts/Pet/pet_generic.cpp @@ -506,7 +506,7 @@ public: DoStartNoMovement(who); } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (!me->GetVictim()) return; diff --git a/src/scripts/Spells/spell_dk.cpp b/src/scripts/Spells/spell_dk.cpp index 56af220e4..ee419992f 100644 --- a/src/scripts/Spells/spell_dk.cpp +++ b/src/scripts/Spells/spell_dk.cpp @@ -390,7 +390,7 @@ class spell_dk_master_of_ghouls : public SpellScriptLoader { PrepareAuraScript(spell_dk_master_of_ghouls_AuraScript); - void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { Unit* target = GetTarget(); if (target->GetTypeId() == TYPEID_PLAYER) @@ -835,7 +835,7 @@ class spell_dk_dancing_rune_weapon_visual : public SpellScriptLoader { PrepareAuraScript(spell_dk_dancing_rune_weapon_visual_AuraScript); - void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { PreventDefaultAction(); if (Unit* owner = GetUnitOwner()->ToTempSummon()->GetSummoner()) @@ -926,7 +926,7 @@ class spell_dk_pet_scaling : public SpellScriptLoader } } - void CalculateSPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateSPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: dk gargoyle inherits 33% of SP if (GetUnitOwner()->GetEntry() != NPC_EBON_GARGOYLE) @@ -948,7 +948,7 @@ class spell_dk_pet_scaling : public SpellScriptLoader } } - void CalculateHasteAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateHasteAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: scale haste with owners melee haste if (Unit* owner = GetUnitOwner()->GetOwner()) @@ -1120,7 +1120,7 @@ class spell_dk_anti_magic_shell_self : public SpellScriptLoader GetTarget()->CastCustomSpell(SPELL_DK_RUNIC_POWER_ENERGIZE, SPELLVALUE_BASE_POINT0, bp, GetTarget(), true, NULL, aurEff); } - void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { Unit* target = GetTarget(); target->ApplySpellImmune(GetId(), IMMUNITY_ID, 33786, true); // cyclone diff --git a/src/scripts/Spells/spell_druid.cpp b/src/scripts/Spells/spell_druid.cpp index defb7d33d..bb2f97d94 100644 --- a/src/scripts/Spells/spell_druid.cpp +++ b/src/scripts/Spells/spell_druid.cpp @@ -100,7 +100,7 @@ class spell_dru_nurturing_instinct : public SpellScriptLoader { PrepareAuraScript(spell_dru_nurturing_instinct_AuraScript); - void AfterApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void AfterApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (Player* player = GetTarget()->ToPlayer()) player->addSpell(GetSpellInfo()->GetRank() == 1 ? SPELL_DRUID_NURTURING_INSTINCT_R1 : SPELL_DRUID_NURTURING_INSTINCT_R2, SPEC_MASK_ALL, false, true); @@ -204,7 +204,7 @@ class spell_dru_brambles_treant : public SpellScriptLoader { PrepareAuraScript(spell_dru_brambles_treant_AuraScript); - bool CheckProc(ProcEventInfo& eventInfo) + bool CheckProc(ProcEventInfo& /*eventInfo*/) { if (Player* player = GetUnitOwner()->GetSpellModOwner()) { @@ -250,7 +250,7 @@ class spell_dru_barkskin : public SpellScriptLoader { PrepareAuraScript(spell_dru_barkskin_AuraScript); - void AfterApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void AfterApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (GetUnitOwner()->HasAura(SPELL_DRUID_GLYPH_OF_BARKSKIN, GetUnitOwner()->GetGUID())) GetUnitOwner()->CastSpell(GetUnitOwner(), SPELL_DRUID_GLYPH_OF_BARKSKIN_TRIGGER, true); @@ -304,7 +304,7 @@ class spell_dru_treant_scaling : public SpellScriptLoader } } - void CalculateAPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateAPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: treant inherits 105% of SP as AP - 15% of damage increase per hit if (Unit* owner = GetUnitOwner()->GetOwner()) @@ -318,7 +318,7 @@ class spell_dru_treant_scaling : public SpellScriptLoader } } - void CalculateSPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateSPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: treant inherits 15% of SP if (Unit* owner = GetUnitOwner()->GetOwner()) diff --git a/src/scripts/Spells/spell_generic.cpp b/src/scripts/Spells/spell_generic.cpp index dcc53f02f..4821e5755 100644 --- a/src/scripts/Spells/spell_generic.cpp +++ b/src/scripts/Spells/spell_generic.cpp @@ -107,7 +107,7 @@ class spell_the_flag_of_ownership : public SpellScriptLoader return true; } - void HandleScript(SpellEffIndex effIndex) + void HandleScript(SpellEffIndex /*effIndex*/) { Unit* caster = GetCaster(); if (!caster || caster->GetTypeId() != TYPEID_PLAYER) @@ -216,7 +216,7 @@ class spell_gen_mine_sweeper : public SpellScriptLoader { PrepareSpellScript(spell_gen_mine_sweeper_SpellScript); - void HandleSchoolDMG(SpellEffIndex effIndex) + void HandleSchoolDMG(SpellEffIndex /*effIndex*/) { Unit* caster = GetCaster(); Player* target = GetHitPlayer(); @@ -227,7 +227,7 @@ class spell_gen_mine_sweeper : public SpellScriptLoader caster->CastSpell(target, 54402, true); } - void HandleScriptEffect(SpellEffIndex effIndex) + void HandleScriptEffect(SpellEffIndex /*effIndex*/) { if (Unit* target = GetHitPlayer()) if (Aura* aur = target->GetAura(GetSpellInfo()->Id)) @@ -285,7 +285,7 @@ class spell_gen_reduced_above_60 : public SpellScriptLoader { PrepareAuraScript(spell_gen_reduced_above_60_AuraScript); - void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & canBeRecalculated) + void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { if (Unit* owner = GetUnitOwner()) if (owner->getLevel() > 60) @@ -404,7 +404,7 @@ public: amplitude = 3*IN_MILLISECONDS; } - void Update(AuraEffect* effect) + void Update(AuraEffect* /*effect*/) { if (Player* player = GetUnitOwner()->GetCharmerOrOwnerPlayerOrPlayerItself()) if (MapEntry const* mapEntry = sMapStore.LookupEntry(player->GetMapId())) @@ -486,7 +486,7 @@ class spell_pet_hit_expertise_scalling : public SpellScriptLoader return (hitChance / cap) * maxChance; } - void CalculateHitAmount(AuraEffect const* aurEff, int32& amount, bool& /*canBeRecalculated*/) + void CalculateHitAmount(AuraEffect const* /*aurEff*/, int32& amount, bool& /*canBeRecalculated*/) { if (Player* modOwner = GetUnitOwner()->GetSpellModOwner()) { @@ -499,7 +499,7 @@ class spell_pet_hit_expertise_scalling : public SpellScriptLoader } } - void CalculateSpellHitAmount(AuraEffect const* aurEff, int32& amount, bool& /*canBeRecalculated*/) + void CalculateSpellHitAmount(AuraEffect const* /*aurEff*/, int32& amount, bool& /*canBeRecalculated*/) { if (Player* modOwner = GetUnitOwner()->GetSpellModOwner()) { @@ -512,7 +512,7 @@ class spell_pet_hit_expertise_scalling : public SpellScriptLoader } } - void CalculateExpertiseAmount(AuraEffect const* aurEff, int32& amount, bool& /*canBeRecalculated*/) + void CalculateExpertiseAmount(AuraEffect const* /*aurEff*/, int32& amount, bool& /*canBeRecalculated*/) { if (Player* modOwner = GetUnitOwner()->GetSpellModOwner()) { @@ -666,7 +666,7 @@ class spell_gen_disabled_above_63 : public SpellScriptLoader { PrepareAuraScript(spell_gen_disabled_above_63_AuraScript); - void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & canBeRecalculated) + void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { Unit* target = GetUnitOwner(); if (target->getLevel() <= 63) @@ -1357,7 +1357,7 @@ class spell_gen_flurry_of_claws : public SpellScriptLoader { PrepareAuraScript(spell_gen_flurry_of_claws_AuraScript); - void OnPeriodic(AuraEffect const* aurEff) + void OnPeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); if (Unit* target = GetUnitOwner()->SelectNearbyTarget(NULL, 7.0f)) diff --git a/src/scripts/Spells/spell_hunter.cpp b/src/scripts/Spells/spell_hunter.cpp index d13ff837f..61a4b35b8 100644 --- a/src/scripts/Spells/spell_hunter.cpp +++ b/src/scripts/Spells/spell_hunter.cpp @@ -130,7 +130,7 @@ class spell_hun_wyvern_sting : public SpellScriptLoader { PrepareAuraScript(spell_hun_wyvern_sting_AuraScript) - void HandleEffectRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) + void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (Unit* caster = GetCaster()) caster->CastSpell(GetTarget(), sSpellMgr->GetSpellWithRank(SPELL_HUNTER_WYVERN_STING_DOT, GetSpellInfo()->GetRank()), true); @@ -157,7 +157,7 @@ class spell_hun_animal_handler : public SpellScriptLoader { PrepareAuraScript(spell_hun_animal_handler_AuraScript); - void CalculateAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { amount = 0; if (Unit* owner = GetUnitOwner()->GetOwner()) @@ -212,7 +212,7 @@ class spell_hun_generic_scaling : public SpellScriptLoader } } - void CalculateAPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateAPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { if (Unit* owner = GetUnitOwner()->GetOwner()) { @@ -233,7 +233,7 @@ class spell_hun_generic_scaling : public SpellScriptLoader } } - void CalculateSPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateSPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { if (Unit* owner = GetUnitOwner()->GetOwner()) { @@ -407,7 +407,7 @@ class spell_hun_ascpect_of_the_viper : public SpellScriptLoader return true; } - void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) + void HandleProc(AuraEffect const* aurEff, ProcEventInfo& /*eventInfo*/) { PreventDefaultAction(); diff --git a/src/scripts/Spells/spell_item.cpp b/src/scripts/Spells/spell_item.cpp index 2748f170a..d6d93cfd1 100644 --- a/src/scripts/Spells/spell_item.cpp +++ b/src/scripts/Spells/spell_item.cpp @@ -27,7 +27,7 @@ class spell_item_massive_seaforium_charge : public SpellScriptLoader { PrepareSpellScript(spell_item_massive_seaforium_charge_SpellScript); - void HandleItemRemove(SpellEffIndex effIndex) + void HandleItemRemove(SpellEffIndex /*effIndex*/) { if (!GetHitUnit() || !GetHitUnit()->ToPlayer()) return; @@ -443,7 +443,7 @@ class spell_item_lil_phylactery : public SpellScriptLoader return eventInfo.GetActionTarget() && (eventInfo.GetActionTarget()->GetTypeId() != TYPEID_UNIT || eventInfo.GetActionTarget()->ToCreature()->isWorldBoss()); } - void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) + void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& /*eventInfo*/) { PreventDefaultAction(); @@ -2386,7 +2386,7 @@ class spell_item_shadows_fate : public SpellScriptLoader { PrepareAuraScript(spell_item_shadows_fate_AuraScript); - void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) + void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& eventInfo) { PreventDefaultAction(); diff --git a/src/scripts/Spells/spell_mage.cpp b/src/scripts/Spells/spell_mage.cpp index 9283107b9..7edcf0e58 100644 --- a/src/scripts/Spells/spell_mage.cpp +++ b/src/scripts/Spells/spell_mage.cpp @@ -148,7 +148,7 @@ class spell_mage_burning_determination : public SpellScriptLoader return true; } - void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) + void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& /*eventInfo*/) { PreventDefaultAction(); GetUnitOwner()->CastSpell(GetUnitOwner(), 54748, true); @@ -215,7 +215,7 @@ public: GetTarget()->CastSpell((Unit*)NULL, GetSpellInfo()->Effects[aurEff->GetEffIndex()].TriggerSpell, true); } - void CalcPeriodic(AuraEffect const* /*effect*/, bool& isPeriodic, int32& amplitude) + void CalcPeriodic(AuraEffect const* /*effect*/, bool& isPeriodic, int32& /*amplitude*/) { isPeriodic = false; } @@ -338,12 +338,12 @@ class spell_mage_pet_scaling : public SpellScriptLoader } } - void CalculateAPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateAPAmount(AuraEffect const* /*aurEff*/, int32 & /*amount*/, bool & /*canBeRecalculated*/) { // xinef: mage pet inherits 0% AP } - void CalculateSPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateSPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: mage pet inherits 33% of SP if (Unit* owner = GetUnitOwner()->GetOwner()) @@ -815,7 +815,7 @@ class spell_mage_ignite : public SpellScriptLoader return true; } - void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) + void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& eventInfo) { PreventDefaultAction(); diff --git a/src/scripts/Spells/spell_priest.cpp b/src/scripts/Spells/spell_priest.cpp index b23cecb10..7389f4e53 100644 --- a/src/scripts/Spells/spell_priest.cpp +++ b/src/scripts/Spells/spell_priest.cpp @@ -77,7 +77,7 @@ class spell_pri_shadowfiend_scaling : public SpellScriptLoader } } - void CalculateAPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateAPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: shadowfiend inherits 333% of SP as AP - 35.7% of damage increase per hit if (Unit* owner = GetUnitOwner()->GetOwner()) @@ -87,7 +87,7 @@ class spell_pri_shadowfiend_scaling : public SpellScriptLoader } } - void CalculateSPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateSPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: shadowfiend inherits 30% of SP if (Unit* owner = GetUnitOwner()->GetOwner()) diff --git a/src/scripts/Spells/spell_rogue.cpp b/src/scripts/Spells/spell_rogue.cpp index f36d5b3ac..7526dc71f 100644 --- a/src/scripts/Spells/spell_rogue.cpp +++ b/src/scripts/Spells/spell_rogue.cpp @@ -49,7 +49,7 @@ public: amplitude = 1000; } - void Update(AuraEffect* auraEffect) + void Update(AuraEffect* /*auraEffect*/) { Unit::AuraApplicationMap const& auras = GetUnitOwner()->GetAppliedAuras(); for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr) diff --git a/src/scripts/Spells/spell_shaman.cpp b/src/scripts/Spells/spell_shaman.cpp index 3a269b381..6fe929a10 100644 --- a/src/scripts/Spells/spell_shaman.cpp +++ b/src/scripts/Spells/spell_shaman.cpp @@ -166,7 +166,7 @@ class spell_sha_totemic_mastery : public SpellScriptLoader { PrepareAuraScript(spell_sha_totemic_mastery_AuraScript); - void HandlePeriodic(AuraEffect const* aurEff) + void HandlePeriodic(AuraEffect const* /*aurEff*/) { PreventDefaultAction(); @@ -219,7 +219,7 @@ class spell_sha_feral_spirit_scaling : public SpellScriptLoader } } - void CalculateAPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateAPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: by default feral spirit inherits 30% of AP if (Unit* owner = GetUnitOwner()->GetOwner()) @@ -232,7 +232,7 @@ class spell_sha_feral_spirit_scaling : public SpellScriptLoader } } - void CalculateSPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateSPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: by default feral spirit inherits 30% of AP as SP if (Unit* owner = GetUnitOwner()->GetOwner()) @@ -345,7 +345,7 @@ class spell_sha_fire_elemental_scaling : public SpellScriptLoader } } - void CalculateAPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateAPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: fire elemental inherits 300% / 150% of SP as AP if (Unit* owner = GetUnitOwner()->GetOwner()) @@ -355,7 +355,7 @@ class spell_sha_fire_elemental_scaling : public SpellScriptLoader } } - void CalculateSPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateSPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: fire elemental inherits 100% of SP if (Unit* owner = GetUnitOwner()->GetOwner()) @@ -671,12 +671,12 @@ class spell_sha_earth_shield : public SpellScriptLoader } } - bool CheckProc(ProcEventInfo& eventInfo) + bool CheckProc(ProcEventInfo& /*eventInfo*/) { return !GetTarget()->HasSpellCooldown(SPELL_SHAMAN_EARTH_SHIELD_HEAL); } - void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) + void HandleProc(AuraEffect const* aurEff, ProcEventInfo& /*eventInfo*/) { PreventDefaultAction(); GetTarget()->CastCustomSpell(SPELL_SHAMAN_EARTH_SHIELD_HEAL, SPELLVALUE_BASE_POINT0, aurEff->GetAmount(), GetTarget(), true, NULL, aurEff, GetCasterGUID()); diff --git a/src/scripts/Spells/spell_warlock.cpp b/src/scripts/Spells/spell_warlock.cpp index b1693e0d9..f7b649b24 100644 --- a/src/scripts/Spells/spell_warlock.cpp +++ b/src/scripts/Spells/spell_warlock.cpp @@ -191,7 +191,7 @@ class spell_warl_improved_demonic_tactics : public SpellScriptLoader amplitude = 10*IN_MILLISECONDS; } - void CalculateAmount(AuraEffect const* aurEff, int32& amount, bool& canBeRecalculated) + void CalculateAmount(AuraEffect const* aurEff, int32& amount, bool& /*canBeRecalculated*/) { if (aurEff->GetEffIndex() == EFFECT_0) amount = CalculatePct(GetUnitOwner()->ToPlayer()->GetFloatValue(PLAYER_SPELL_CRIT_PERCENTAGE1 + SPELL_SCHOOL_FROST), GetSpellInfo()->Effects[EFFECT_0].CalcValue()); @@ -362,7 +362,7 @@ class spell_warl_generic_scaling : public SpellScriptLoader } } - void CalculateAPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateAPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: by default warlock pet inherits 57% of max(SP FIRE, SP SHADOW) as AP if (Unit* owner = GetUnitOwner()->GetOwner()) @@ -374,7 +374,7 @@ class spell_warl_generic_scaling : public SpellScriptLoader } } - void CalculateSPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateSPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: by default warlock pet inherits 15% of max(SP FIRE, SP SHADOW) as SP if (Unit* owner = GetUnitOwner()->GetOwner()) @@ -479,7 +479,7 @@ class spell_warl_infernal_scaling : public SpellScriptLoader } } - void CalculateAPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateAPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: by default warlock pet inherits 57% of max(SP FIRE, SP SHADOW) as AP if (Unit* owner = GetUnitOwner()->GetOwner()) @@ -491,7 +491,7 @@ class spell_warl_infernal_scaling : public SpellScriptLoader } } - void CalculateSPAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/) + void CalculateSPAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { // xinef: by default warlock pet inherits 15% of max(SP FIRE, SP SHADOW) as SP if (Unit* owner = GetUnitOwner()->GetOwner()) diff --git a/src/scripts/Spells/spell_warrior.cpp b/src/scripts/Spells/spell_warrior.cpp index 9930b32f4..2ea90c230 100644 --- a/src/scripts/Spells/spell_warrior.cpp +++ b/src/scripts/Spells/spell_warrior.cpp @@ -189,7 +189,7 @@ class spell_warr_improved_spell_reflection_trigger : public SpellScriptLoader PrepareAuraScript(spell_warr_improved_spell_reflection_trigger_AuraScript); - void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes mode) + void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { if (!IsExpired()) { diff --git a/src/scripts/World/go_scripts.cpp b/src/scripts/World/go_scripts.cpp index e994ff879..ce6c3f69c 100644 --- a/src/scripts/World/go_scripts.cpp +++ b/src/scripts/World/go_scripts.cpp @@ -127,7 +127,7 @@ class go_arena_ready_marker : public GameObjectScript public: go_arena_ready_marker() : GameObjectScript("go_arena_ready_marker") { } - bool OnGossipHello(Player* player, GameObject *go) + bool OnGossipHello(Player* player, GameObject * /*go*/) { if (Battleground* bg = player->GetBattleground()) bg->ReadyMarkerClicked(player); @@ -273,19 +273,19 @@ public: go->SummonCreature(NPC_WINTERFIN_TADPOLE, go->GetPositionX()+cos(2*M_PI*i/3.0f)*0.60f, go->GetPositionY()+sin(2*M_PI*i/3.0f)*0.60f, go->GetPositionZ()+0.5f, go->GetOrientation(), TEMPSUMMON_CORPSE_TIMED_DESPAWN, 30000); } - void OnStateChanged(uint32 state, Unit* unit) + void OnStateChanged(uint32 state, Unit* /*unit*/) { if (requireSummon == 1 && state == GO_READY) requireSummon = 2; } - void UpdateAI(uint32 diff) + void UpdateAI(uint32 /*diff*/) { if (go->isSpawned() && requireSummon == 2) SummonTadpoles(); } - bool GossipHello(Player* player, bool reportUse) + bool GossipHello(Player* player, bool /*reportUse*/) { if (requireSummon) return false; diff --git a/src/scripts/World/npc_professions.cpp b/src/scripts/World/npc_professions.cpp index c088aae94..f154f8dd2 100644 --- a/src/scripts/World/npc_professions.cpp +++ b/src/scripts/World/npc_professions.cpp @@ -1155,7 +1155,7 @@ public: return true; } - void SendActionMenu(Player* player, GameObject* gameobject, uint32 uiAction) + void SendActionMenu(Player* player, GameObject* /*gameobject*/, uint32 uiAction) { switch(uiAction) { diff --git a/src/scripts/World/npc_taxi.cpp b/src/scripts/World/npc_taxi.cpp index c7d815b8f..9bd364dbd 100644 --- a/src/scripts/World/npc_taxi.cpp +++ b/src/scripts/World/npc_taxi.cpp @@ -156,7 +156,7 @@ public: return true; } - bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) + bool OnGossipSelect(Player* player, Creature* /*creature*/, uint32 /*sender*/, uint32 action) { player->PlayerTalkClass->ClearMenus(); switch (action) diff --git a/src/scripts/World/npcs_special.cpp b/src/scripts/World/npcs_special.cpp index 11330b7ac..a161a6fa7 100644 --- a/src/scripts/World/npcs_special.cpp +++ b/src/scripts/World/npcs_special.cpp @@ -181,7 +181,7 @@ public: return true; } - bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 opt) + bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { if (!creature->AI()->GetData(DATA_DERBY_FINISHED) && quest->GetQuestId() == QUEST_FISHING_DERBY) { @@ -290,7 +290,7 @@ public: return true; } - bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 opt) + bool OnQuestReward(Player* player, Creature* creature, Quest const* quest, uint32 /*opt*/) { if (!creature->AI()->GetData(DATA_ANGLER_FINISHED) && quest->GetQuestId() == QUEST_MASTER_ANGLER) {