mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 11:43:18 -04:00
Scripts/Spells: Refactor spell script internals to fix -Wcast-function-type-mismatch warning
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user