diff options
author | Spp <none@none> | 2010-08-23 14:10:24 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-08-23 14:10:24 +0200 |
commit | 58e94dcb9d2d983c8ffc2df0bb86f3d765b08652 (patch) | |
tree | 15d7064e900faf241d117be5bd2567f99ed5287f /src/server/scripts/Spells | |
parent | 16d95d3115b27536e7a1c99e795a5f90c238eb16 (diff) |
Core: Fix more warnings
--HG--
branch : trunk
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r-- | src/server/scripts/Spells/spell_dk.cpp | 12 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_druid.cpp | 4 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_generic.cpp | 4 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_hunter.cpp | 28 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_mage.cpp | 10 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_paladin.cpp | 10 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_priest.cpp | 4 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_quest.cpp | 8 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_rogue.cpp | 16 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_shaman.cpp | 6 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_warlock.cpp | 8 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_warrior.cpp | 4 |
12 files changed, 57 insertions, 57 deletions
diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index 0ad65ac3e2a..932d13fccd0 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -40,14 +40,14 @@ public: class spell_dk_corpse_explosion_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(DK_SPELL_CORPSE_EXPLOSION_TRIGGERED)) return false; return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { if (Unit* unitTarget = GetHitUnit()) { @@ -86,14 +86,14 @@ public: class spell_dk_runic_power_feed_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(DK_SPELL_SUMMON_GARGOYLE)) return false; return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { if (Unit* caster = GetCaster()) { @@ -125,14 +125,14 @@ public: class spell_dk_scourge_strike_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(DK_SPELL_SCOURGE_STRIKE_TRIGGERED)) return false; return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Unit* caster = GetCaster(); if (Unit* unitTarget = GetHitUnit()) diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp index dc66faf3b89..9adbc48d53e 100644 --- a/src/server/scripts/Spells/spell_druid.cpp +++ b/src/server/scripts/Spells/spell_druid.cpp @@ -38,7 +38,7 @@ public: class spell_dru_glyph_of_starfire_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(DRUID_INCREASED_MOONFIRE_DURATION)) return false; @@ -47,7 +47,7 @@ public: return true; } - void HandleScriptEffect(SpellEffIndex effIndex) + void HandleScriptEffect(SpellEffIndex /*effIndex*/) { Unit* caster = GetCaster(); if (Unit* unitTarget = GetHitUnit()) diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp index 53333bc8470..e0b04d9b09a 100644 --- a/src/server/scripts/Spells/spell_generic.cpp +++ b/src/server/scripts/Spells/spell_generic.cpp @@ -38,7 +38,7 @@ public: class spell_gen_remove_flight_auras_SpellScript : public SpellScript { - void HandleScript(SpellEffIndex effIndex) + void HandleScript(SpellEffIndex /*effIndex*/) { Unit *target = GetHitUnit(); if (!target) @@ -66,7 +66,7 @@ public: class spell_gen_pet_summonedSpellScript : public SpellScript { - void HandleScript(SpellEffIndex effIndex) + void HandleScript(SpellEffIndex /*effIndex*/) { Unit *caster = GetCaster(); if (caster->GetTypeId() != TYPEID_PLAYER) diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp index ef9bcaeb440..9f98564d0ea 100644 --- a/src/server/scripts/Spells/spell_hunter.cpp +++ b/src/server/scripts/Spells/spell_hunter.cpp @@ -48,7 +48,7 @@ public: class spell_hun_chimera_shot_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(HUNTER_SPELL_CHIMERA_SHOT_SERPENT)) return false; @@ -59,7 +59,7 @@ public: return true; } - void HandleScriptEffect(SpellEffIndex effIndex) + void HandleScriptEffect(SpellEffIndex /*effIndex*/) { Unit* caster = GetCaster(); Unit* unitTarget = GetHitUnit(); @@ -140,14 +140,14 @@ public: class spell_hun_invigoration_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(HUNTER_SPELL_INVIGORATION_TRIGGERED)) return false; return true; } - void HandleScriptEffect(SpellEffIndex effIndex) + void HandleScriptEffect(SpellEffIndex /*effIndex*/) { if (Unit* unitTarget = GetHitUnit()) if (AuraEffect* aurEff = unitTarget->GetDummyAuraEffect(SPELLFAMILY_HUNTER, 3487, 0)) @@ -174,14 +174,14 @@ public: class spell_hun_last_stand_pet_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(HUNTER_PET_SPELL_LAST_STAND_TRIGGERED)) return false; return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Unit *caster = GetCaster(); int32 healthModSpellBasePoints0 = int32(caster->GetMaxHealth()*0.3); @@ -208,7 +208,7 @@ public: class spell_hun_masters_call_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(HUNTER_SPELL_MASTERS_CALL_TRIGGERED)) return false; @@ -228,7 +228,7 @@ public: pet->CastSpell(unitTarget, SpellMgr::CalculateSpellEffectAmount(GetSpellInfo(), effIndex), true); } - void HandleScriptEffect(SpellEffIndex effIndex) + void HandleScriptEffect(SpellEffIndex /*effIndex*/) { Unit* caster = GetCaster(); if (caster->GetTypeId() != TYPEID_PLAYER) @@ -259,7 +259,7 @@ public: class spell_hun_readiness_SpellScript : public SpellScript { - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Unit *caster = GetCaster(); if (caster->GetTypeId() != TYPEID_PLAYER) @@ -302,7 +302,7 @@ public: class spell_hun_scatter_shot_SpellScript : public SpellScript { - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Unit* caster = GetCaster(); if (caster->GetTypeId() != TYPEID_PLAYER) @@ -333,7 +333,7 @@ public: class spell_hun_pet_heart_of_the_phoenix_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(HUNTER_PET_HEART_OF_THE_PHOENIX_TRIGGERED)) return false; @@ -342,7 +342,7 @@ public: return true; } - void HandleScript(SpellEffIndex effIndex) + void HandleScript(SpellEffIndex /*effIndex*/) { Unit *caster = GetCaster(); if (caster->HasAura(HUNTER_PET_HEART_OF_THE_PHOENIX_DEBUFF)) @@ -378,14 +378,14 @@ public: class spell_hun_pet_carrion_feeder_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(HUNTER_PET_SPELL_CARRION_FEEDER_TRIGGERED)) return false; return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { if (!GetHitUnit()) return; diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp index 44c40d9410d..4eb08919e4f 100644 --- a/src/server/scripts/Spells/spell_mage.cpp +++ b/src/server/scripts/Spells/spell_mage.cpp @@ -44,7 +44,7 @@ class spell_mage_cold_snap : public SpellHandlerScript class spell_mage_cold_snap_SpellScript : public SpellScript { - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Unit *caster = GetCaster(); @@ -90,7 +90,7 @@ class spell_mage_polymorph_cast_visual : public SpellHandlerScript { static const uint32 spell_list[6]; - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { // check if spell ids exist in dbc for (int i = 0; i < 6; i++) @@ -99,7 +99,7 @@ class spell_mage_polymorph_cast_visual : public SpellHandlerScript return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { if (Unit *unitTarget = GetHitUnit()) if (unitTarget->GetTypeId() == TYPEID_UNIT) @@ -136,7 +136,7 @@ class spell_mage_summon_water_elemental : public SpellHandlerScript class spell_mage_summon_water_elemental_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(SPELL_MAGE_GLYPH_OF_ETERNAL_WATER)) return false; @@ -147,7 +147,7 @@ class spell_mage_summon_water_elemental : public SpellHandlerScript return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { if (Unit *unitTarget = GetHitUnit()) { diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp index 1bac2afe0eb..46be23b4091 100644 --- a/src/server/scripts/Spells/spell_paladin.cpp +++ b/src/server/scripts/Spells/spell_paladin.cpp @@ -58,7 +58,7 @@ public: return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { if (Unit *unitTarget = GetHitUnit()) { @@ -97,14 +97,14 @@ public: class spell_pal_guarded_by_the_light_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(PALADIN_SPELL_DIVINE_PLEA)) return false; return true; } - void HandleScriptEffect(SpellEffIndex effIndex) + void HandleScriptEffect(SpellEffIndex /*effIndex*/) { // Divine Plea if (Aura* aura = GetCaster()->GetAura(PALADIN_SPELL_DIVINE_PLEA)) @@ -148,7 +148,7 @@ public: return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { if (Unit *unitTarget = GetHitUnit()) { @@ -183,7 +183,7 @@ public: class spell_pal_judgement_of_command_SpellScript : public SpellScript { - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { if (Unit *unitTarget = GetHitUnit()) if (SpellEntry const* spell_proto = sSpellStore.LookupEntry(GetEffectValue())) diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp index 644585eee5d..acada207aac 100644 --- a/src/server/scripts/Spells/spell_priest.cpp +++ b/src/server/scripts/Spells/spell_priest.cpp @@ -39,7 +39,7 @@ class spell_pri_pain_and_suffering_proc : public SpellHandlerScript // 47948 Pain and Suffering (proc) class spell_pri_pain_and_suffering_proc_SpellScript : public SpellScript { - void HandleEffectScriptEffect(SpellEffIndex effIndex) + void HandleEffectScriptEffect(SpellEffIndex /*effIndex*/) { // Refresh Shadow Word: Pain on target if (Unit *unitTarget = GetHitUnit()) @@ -83,7 +83,7 @@ class spell_pri_penance : public SpellHandlerScript return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Unit *unitTarget = GetHitUnit(); if (!unitTarget || !unitTarget->isAlive()) diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index 0a13c231ebf..7f4ef9b22f1 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -39,7 +39,7 @@ public: class spell_q11587_arcane_prisoner_rescue_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(QUEST11587_SPELL_SUMMON_ARCANE_PRISONER_MALE)) return false; @@ -50,7 +50,7 @@ public: return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Unit* caster = GetCaster(); if (Unit* unitTarget = GetHitUnit()) @@ -99,7 +99,7 @@ public: class spell_q11730_ultrasonic_screwdriver_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(SPELL_QUEST_SUMMON_SCAVENGEBOT_004A8)) return false; @@ -116,7 +116,7 @@ public: return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Item *castItem = GetCastItem(); if (!castItem) diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp index d379baa0dda..a85713fd068 100644 --- a/src/server/scripts/Spells/spell_rogue.cpp +++ b/src/server/scripts/Spells/spell_rogue.cpp @@ -38,14 +38,14 @@ class spell_rog_cheat_death : public SpellHandlerScript class spell_rog_cheat_death_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(ROGUE_SPELL_CHEATING_DEATH)) return false; return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Unit *caster = GetCaster(); caster->CastSpell(caster, ROGUE_SPELL_CHEATING_DEATH, true); @@ -71,14 +71,14 @@ class spell_rog_hunger_for_blood : public SpellHandlerScript class spell_rog_hunger_for_blood_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(ROGUE_SPELL_HUNGER_FOR_BLOOD_BUFF)) return false; return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Unit *caster = GetCaster(); caster->CastSpell(caster, ROGUE_SPELL_HUNGER_FOR_BLOOD_BUFF, true); @@ -104,14 +104,14 @@ class spell_rog_preparation : public SpellHandlerScript class spell_rog_preparation_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(ROGUE_SPELL_GLYPH_OF_PREPARATION)) return false; return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Unit *caster = GetCaster(); if (caster->GetTypeId() != TYPEID_PLAYER) @@ -166,14 +166,14 @@ class spell_rog_shiv : public SpellHandlerScript class spell_rog_shiv_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(ROGUE_SPELL_SHIV_TRIGGERED)) return false; return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Unit *caster = GetCaster(); if (caster->GetTypeId() != TYPEID_PLAYER) diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp index d0ec883248d..56dea16fbbf 100644 --- a/src/server/scripts/Spells/spell_shaman.cpp +++ b/src/server/scripts/Spells/spell_shaman.cpp @@ -53,7 +53,7 @@ public: return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { if (Unit* caster = GetCaster()) { @@ -89,7 +89,7 @@ public: class spell_sha_mana_tide_totem_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(SHAMAN_SPELL_GLYPH_OF_MANA_TIDE)) return false; @@ -98,7 +98,7 @@ public: return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { Unit* caster = GetCaster(); if (Unit* unitTarget = GetHitUnit()) diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp index f13c35b3b54..4f638a6958e 100644 --- a/src/server/scripts/Spells/spell_warlock.cpp +++ b/src/server/scripts/Spells/spell_warlock.cpp @@ -44,7 +44,7 @@ public: class spell_warl_demonic_empowerment_SpellScript : public SpellScript { - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(WARLOCK_DEMONIC_EMPOWERMENT_SUCCUBUS)) return false; @@ -59,7 +59,7 @@ public: return true; } - void HandleScriptEffect(SpellEffIndex effIndex) + void HandleScriptEffect(SpellEffIndex /*effIndex*/) { if (Creature* targetCreature = GetHitCreature()) { @@ -113,7 +113,7 @@ public: class spell_warl_everlasting_affliction_SpellScript : public SpellScript { - void HandleScriptEffect(SpellEffIndex effIndex) + void HandleScriptEffect(SpellEffIndex /*effIndex*/) { if (Unit* unitTarget = GetHitUnit()) // Refresh corruption on target @@ -143,7 +143,7 @@ public: { static uint32 const iTypes[8][3]; - bool Validate(SpellEntry const * spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(WARLOCK_IMPROVED_HEALTHSTONE_R1)) return false; diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp index d6dcbef1364..deab26bf716 100644 --- a/src/server/scripts/Spells/spell_warrior.cpp +++ b/src/server/scripts/Spells/spell_warrior.cpp @@ -35,14 +35,14 @@ class spell_warr_last_stand : public SpellHandlerScript class spell_warr_last_stand_SpellScript : public SpellScript { - bool Validate(SpellEntry const *spellEntry) + bool Validate(SpellEntry const * /*spellEntry*/) { if (!sSpellStore.LookupEntry(WARRIOR_SPELL_LAST_STAND_TRIGGERED)) return false; return true; } - void HandleDummy(SpellEffIndex effIndex) + void HandleDummy(SpellEffIndex /*effIndex*/) { int32 healthModSpellBasePoints0 = int32(GetCaster()->GetMaxHealth() * 0.3); GetCaster()->CastCustomSpell(GetCaster(), WARRIOR_SPELL_LAST_STAND_TRIGGERED, &healthModSpellBasePoints0, NULL, NULL, true, NULL); |