Fixed all unused-parameters warnings

issue #121

used clang-tidy to achieve this
This commit is contained in:
Yehonal
2017-09-18 14:23:26 +02:00
parent aa87ec685b
commit 2b2e299ccc
229 changed files with 643 additions and 643 deletions
+1 -1
View File
@@ -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)
+2 -2
View File
@@ -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;
}
+1 -1
View File
@@ -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;
+3 -3
View File
@@ -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())
@@ -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;
@@ -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)
{
@@ -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)
{
@@ -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)
@@ -323,7 +323,7 @@ public:
amplitude = 5000;
}
void Update(AuraEffect const* effect)
void Update(AuraEffect const* /*effect*/)
{
PreventDefaultAction();
if (roll_chance_i(35))
@@ -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);
@@ -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();
@@ -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);
@@ -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);
@@ -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);
@@ -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);
}
@@ -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);
}
@@ -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)
@@ -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;
@@ -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))
+7 -7
View File
@@ -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*/)
{
}
+11 -11
View File
@@ -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<uint64> 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)
{
+2 -2
View File
@@ -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())
+4 -4
View File
@@ -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)
{
@@ -131,7 +131,7 @@ public:
Talk(SAY_DEATH);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!urand(0,1))
return;
@@ -84,7 +84,7 @@ public:
{
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!urand(0,1))
return;
@@ -63,7 +63,7 @@ public:
Talk(SAY_DEATH);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!urand(0,1))
return;
@@ -84,7 +84,7 @@ public:
Talk(SAY_DEATH);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
if (!urand(0,1))
return;
@@ -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;
@@ -134,7 +134,7 @@ public:
events.ScheduleEvent(EVENT_SPELL_CONSECRATION, 1000);
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
Talk(SAY_SLAY);
}
@@ -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<npc_tarethaAI>(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();
@@ -133,7 +133,7 @@ public:
}
}
void SetData(uint32 type, uint32 data)
void SetData(uint32 type, uint32 /*data*/)
{
switch (type)
{
@@ -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*/) {}
};
};
@@ -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)
{
@@ -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<WorldObject*> cagesList;
@@ -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);
@@ -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);
@@ -290,7 +290,7 @@ public:
}
}
void MovementInform(uint32 type, uint32 id)
void MovementInform(uint32 /*type*/, uint32 id)
{
if (id == 0)
me->DisappearAndDie();
@@ -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)
{
@@ -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();
@@ -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)
{
@@ -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)
{
@@ -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)
{
@@ -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);
@@ -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)
{
@@ -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() )
@@ -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)
{
@@ -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 )
{
@@ -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)
{
@@ -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*/) {}
};
};
@@ -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() )
{
@@ -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);
@@ -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())
@@ -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 )
{
@@ -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)
@@ -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)
{
@@ -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))
@@ -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();
@@ -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)
{
@@ -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());
@@ -105,7 +105,7 @@ public:
}
}
void SpellHitTarget(Unit* target, const SpellInfo* spell)
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spell)
{
if (spell->Id == SPELL_TELEPORT)
{
@@ -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)
{
@@ -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())
@@ -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())
@@ -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))
{
@@ -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*/)
{
}
};
@@ -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)
{
@@ -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())
@@ -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;
@@ -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();
}
@@ -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();
@@ -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)
@@ -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;
@@ -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();
}
@@ -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();
@@ -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;
}
@@ -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() {}
};
@@ -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());
@@ -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))
@@ -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())
@@ -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);
@@ -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();
@@ -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);
}
@@ -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)
{
@@ -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);
@@ -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)
{
@@ -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);
@@ -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);
@@ -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)))
@@ -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);
@@ -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);
@@ -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)
@@ -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);
@@ -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))
@@ -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)
@@ -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);
@@ -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))
{
@@ -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)
@@ -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);
@@ -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)
{
@@ -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)
{

Some files were not shown because too many files have changed in this diff Show More