mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-27 22:16:11 +00:00
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:
@@ -1349,10 +1349,13 @@ class spell_hun_thrill_of_the_hunt : public AuraScript
|
||||
return;
|
||||
}
|
||||
if (AuraEffect const* pEff = victim->GetAuraEffect(SPELL_AURA_PERIODIC_DUMMY, SPELLFAMILY_HUNTER, 0x0, 0x80000000, 0x0, caster->GetGUID()))
|
||||
mana = pEff->GetSpellInfo()->CalcPowerCost(caster, SpellSchoolMask(pEff->GetSpellInfo()->SchoolMask)) * 4 / 10 / 3;
|
||||
{
|
||||
SpellInfo const* expSpell = pEff->GetSpellInfo();
|
||||
mana = (expSpell->ManaCost + int32(CalculatePct(caster->GetCreateMana(), expSpell->ManaCostPercentage))) * 4 / 10 / 3;
|
||||
}
|
||||
}
|
||||
else
|
||||
mana = procSpell->CalcPowerCost(caster, SpellSchoolMask(procSpell->SchoolMask)) * 4 / 10;
|
||||
mana = (procSpell->ManaCost + int32(CalculatePct(caster->GetCreateMana(), procSpell->ManaCostPercentage))) * 4 / 10;
|
||||
|
||||
if (spell)
|
||||
caster->ToPlayer()->SetSpellModTakingSpell(spell, true);
|
||||
|
||||
Reference in New Issue
Block a user