fix(Core/Spells): Use base mana cost for Illumination and Thrill of the Hunt (#24776)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-02-20 11:04:41 -06:00
committed by GitHub
parent 20745b45ba
commit 88a6048890
3 changed files with 11 additions and 4 deletions

View File

@@ -2063,7 +2063,7 @@ private:
bool _isVengeance = true;
};
// -20234 - Illumination
// -20210 - Illumination
class spell_pal_illumination : public AuraScript
{
PrepareAuraScript(spell_pal_illumination);
@@ -2095,7 +2095,8 @@ class spell_pal_illumination : public AuraScript
if (originalSpell && aurEff->GetSpellInfo())
{
Unit* target = eventInfo.GetActor(); // Paladin is the target of the energize
int32 bp = CalculatePct(static_cast<int32>(originalSpell->CalcPowerCost(target, originalSpell->GetSchoolMask())), aurEff->GetSpellInfo()->Effects[EFFECT_1].CalcValue());
int32 baseCost = originalSpell->ManaCost + int32(CalculatePct(target->GetCreateMana(), originalSpell->ManaCostPercentage));
int32 bp = CalculatePct(baseCost, aurEff->GetSpellInfo()->Effects[EFFECT_1].CalcValue());
target->CastCustomSpell(target, SPELL_PALADIN_ILLUMINATION_ENERGIZE, &bp, nullptr, nullptr, true, nullptr, aurEff);
}
}