Core: Cleanup in MiscHandler::SendAreaTriggerMessage and warning fixes

This commit is contained in:
Spp
2011-09-16 10:53:24 +02:00
parent 400716926c
commit 6c943bfb08
8 changed files with 70 additions and 82 deletions

View File

@@ -101,7 +101,6 @@ class boss_sulfuron : public CreatureScript
break;
case EVENT_INSPIRE:
{
Creature* target = NULL;
std::list<Creature*> healers = DoFindFriendlyMissingBuff(45.0f, SPELL_INSPIRE);
if (!healers.empty())
DoCast(SelectRandomContainerElement(healers), SPELL_INSPIRE);

View File

@@ -648,7 +648,7 @@ public:
else m_uiRangeCheckTimer -= uiDiff;
}
void SpellHitTarget(Unit* who, const SpellInfo* spell)
void SpellHitTarget(Unit* who, const SpellInfo* /*spell*/)
{
if (who->HasAura(SPELL_DARK_ESSENCE_HELPER))
who->CastSpell(who, SPELL_POWERING_UP, true);
@@ -687,7 +687,7 @@ public:
else m_uiRangeCheckTimer -= uiDiff;
}
void SpellHitTarget(Unit* who, const SpellInfo* spell)
void SpellHitTarget(Unit* who, const SpellInfo* /*spell*/)
{
if (who->HasAura(SPELL_LIGHT_ESSENCE_HELPER))
who->CastSpell(who, SPELL_POWERING_UP, true);
@@ -821,7 +821,7 @@ class spell_power_of_the_twins : public SpellScriptLoader
return GetCaster()->GetTypeId() == TYPEID_UNIT;
}
void HandleEffectApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (InstanceScript* instance = GetCaster()->GetInstanceScript())
{