Scripts/Spells: Refactor spell script internals to fix -Wcast-function-type-mismatch warning

This commit is contained in:
Shauren
2025-08-16 15:31:10 +02:00
parent 7fe0d4a81c
commit de80c713d0
18 changed files with 472 additions and 945 deletions

View File

@@ -369,12 +369,12 @@ class spell_dk_crimson_scourge : public AuraScript
return ValidateSpellInfo({ SPELL_DK_BLOOD_PLAGUE, SPELL_DK_CRIMSON_SCOURGE_BUFF, SPELL_DK_DEATH_AND_DECAY });
}
static bool CheckProc(AuraEffect const* /*aurEff*/, ProcEventInfo const& procInfo)
static bool CheckProc(AuraScript const&, AuraEffect const* /*aurEff*/, ProcEventInfo const& procInfo)
{
return procInfo.GetProcTarget()->HasAura(SPELL_DK_BLOOD_PLAGUE, procInfo.GetActor()->GetGUID());
}
static void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo const& eventInfo)
static void HandleProc(AuraScript const&, AuraEffect const* /*aurEff*/, ProcEventInfo const& eventInfo)
{
Unit* actor = eventInfo.GetActor();
actor->GetSpellHistory()->RestoreCharge(sSpellMgr->AssertSpellInfo(SPELL_DK_DEATH_AND_DECAY, DIFFICULTY_NONE)->ChargeCategoryId);