Core: Fix some warnings
This commit is contained in:
@@ -1227,7 +1227,7 @@ class npc_tirion_fordring_tft : public CreatureScript
|
||||
SetEquipmentSlots(true); // remove glow on ashbringer
|
||||
}
|
||||
|
||||
void sGossipSelect(Player* player, uint32 sender, uint32 action)
|
||||
void sGossipSelect(Player* /*player*/, uint32 sender, uint32 action)
|
||||
{
|
||||
if (me->GetCreatureInfo()->GossipMenuId == sender && !action)
|
||||
{
|
||||
@@ -1407,14 +1407,14 @@ class npc_raging_spirit : public CreatureScript
|
||||
DoCast(me, SPELL_BOSS_HITTIN_YA, true);
|
||||
}
|
||||
|
||||
void IsSummonedBy(Unit* summoner)
|
||||
void IsSummonedBy(Unit* /*summoner*/)
|
||||
{
|
||||
// player is the spellcaster so register summon manually
|
||||
if (Creature* lichKing = ObjectAccessor::GetCreature(*me, _instance->GetData64(DATA_THE_LICH_KING)))
|
||||
lichKing->AI()->JustSummoned(me);
|
||||
}
|
||||
|
||||
void JustDied(Unit* killer)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (Creature* lichKing = ObjectAccessor::GetCreature(*me, _instance->GetData64(DATA_THE_LICH_KING)))
|
||||
lichKing->AI()->SummonedCreatureDespawn(me);
|
||||
@@ -1931,7 +1931,7 @@ class npc_spirit_bomb : public CreatureScript
|
||||
{
|
||||
}
|
||||
|
||||
void IsSummonedBy(Unit* summoner)
|
||||
void IsSummonedBy(Unit* /*summoner*/)
|
||||
{
|
||||
float destX, destY, destZ;
|
||||
me->GetPosition(destX, destY);
|
||||
@@ -1954,7 +1954,7 @@ class npc_spirit_bomb : public CreatureScript
|
||||
{
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 const diff)
|
||||
void UpdateAI(uint32 const /*diff*/)
|
||||
{
|
||||
UpdateVictim();
|
||||
// no melee attacks
|
||||
@@ -1983,7 +1983,7 @@ class npc_broken_frostmourne : public CreatureScript
|
||||
_events.Reset();
|
||||
}
|
||||
|
||||
void IsSummonedBy(Unit* summoner)
|
||||
void IsSummonedBy(Unit* /*summoner*/)
|
||||
{
|
||||
_events.SetPhase(PHASE_OUTRO);
|
||||
_events.ScheduleEvent(EVENT_OUTRO_KNOCK_BACK, 3000, 0, PHASE_OUTRO);
|
||||
@@ -2087,7 +2087,6 @@ class spell_the_lich_king_necrotic_plague : public SpellScriptLoader
|
||||
|
||||
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
Unit* newCaster = GetTarget();
|
||||
switch (GetTargetApplication()->GetRemoveMode())
|
||||
{
|
||||
case AURA_REMOVE_BY_ENEMY_SPELL:
|
||||
@@ -2250,7 +2249,7 @@ class spell_the_lich_king_shadow_trap_visual : public SpellScriptLoader
|
||||
{
|
||||
PrepareAuraScript(spell_the_lich_king_shadow_trap_visual_AuraScript);
|
||||
|
||||
void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes mode)
|
||||
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
if (GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_EXPIRE)
|
||||
GetTarget()->CastSpell(GetTarget(), SPELL_SHADOW_TRAP_AURA, TRIGGERED_NONE);
|
||||
@@ -2633,7 +2632,7 @@ class spell_the_lich_king_cast_back_to_caster : public SpellScriptLoader
|
||||
{
|
||||
PrepareSpellScript(spell_the_lich_king_cast_back_to_caster_SpellScript);
|
||||
|
||||
void HandleScript(SpellEffIndex effIndex)
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
GetHitUnit()->CastSpell(GetCaster(), uint32(GetEffectValue()), true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user