Core/Spells: Removed SpellEffIndex effIndex argument from spell effect handlers

This commit is contained in:
Shauren
2021-08-29 23:28:28 +02:00
parent 462e11c96f
commit 7440c9cf19
11 changed files with 501 additions and 478 deletions

View File

@@ -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)]);
}
}

View File

@@ -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

View File

@@ -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)