mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/Spells: Removed SpellEffIndex effIndex argument from spell effect handlers
This commit is contained in:
@@ -3522,7 +3522,7 @@ class spell_gen_upper_deck_create_foam_sword : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_gen_upper_deck_create_foam_sword);
|
||||
|
||||
void HandleScript(SpellEffIndex effIndex)
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Player* player = GetHitPlayer())
|
||||
{
|
||||
@@ -3534,7 +3534,7 @@ class spell_gen_upper_deck_create_foam_sword : public SpellScript
|
||||
return;
|
||||
}
|
||||
|
||||
CreateItem(effIndex, itemId[urand(0, 4)]);
|
||||
CreateItem(itemId[urand(0, 4)]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1370,7 +1370,7 @@ class spell_item_mingos_fortune_generator : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_item_mingos_fortune_generator);
|
||||
|
||||
void HandleDummy(SpellEffIndex effIndex)
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
// Selecting one from Bloodstained Fortune item
|
||||
uint32 newitemid;
|
||||
@@ -1400,7 +1400,7 @@ class spell_item_mingos_fortune_generator : public SpellScript
|
||||
return;
|
||||
}
|
||||
|
||||
CreateItem(effIndex, newitemid);
|
||||
CreateItem(newitemid);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
@@ -196,7 +196,7 @@ class spell_warl_create_healthstone : public SpellScriptLoader
|
||||
return SPELL_CAST_OK;
|
||||
}
|
||||
|
||||
void HandleScriptEffect(SpellEffIndex effIndex)
|
||||
void HandleScriptEffect(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Unit* unitTarget = GetHitUnit())
|
||||
{
|
||||
@@ -219,7 +219,7 @@ class spell_warl_create_healthstone : public SpellScriptLoader
|
||||
}
|
||||
uint8 spellRank = GetSpellInfo()->GetRank();
|
||||
if (spellRank > 0 && spellRank <= 8)
|
||||
CreateItem(effIndex, iTypes[spellRank - 1][rank]);
|
||||
CreateItem(iTypes[spellRank - 1][rank]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -973,7 +973,7 @@ class spell_warl_seed_of_corruption_dummy : public AuraScript
|
||||
return;
|
||||
|
||||
// effect 1 scales with 14% of caster's SP (DBC data)
|
||||
amount = caster->SpellDamageBonusDone(GetUnitOwner(), GetSpellInfo(), amount, SPELL_DIRECT_DAMAGE, aurEff->GetEffIndex(), GetAura()->GetDonePct());
|
||||
amount = caster->SpellDamageBonusDone(GetUnitOwner(), GetSpellInfo(), amount, SPELL_DIRECT_DAMAGE, aurEff->GetSpellEffectInfo(), GetAura()->GetDonePct());
|
||||
}
|
||||
|
||||
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
|
||||
|
||||
Reference in New Issue
Block a user