Core/Players: Fixed spellpower for devourer demon hunters (currently the only intellect based spec without mana)

Signed-off-by: luis <[email protected]>
This commit is contained in:
Shauren
2026-02-06 14:45:55 -03:00
committed by luis
parent 47e7f1768a
commit 0f32a1d35d
+5 -5
View File
@@ -7089,7 +7089,8 @@ int32 Unit::SpellDamageBonusTaken(Unit* caster, SpellInfo const* spellProto, int
int32 Unit::SpellBaseDamageBonusDone(SpellSchoolMask schoolMask) const
{
if (Player const* thisPlayer = ToPlayer())
Player const* thisPlayer = ToPlayer();
if (thisPlayer)
{
float overrideSP = thisPlayer->m_activePlayerData->OverrideSpellPowerByAPPercent;
if (overrideSP > 0.0f)
@@ -7098,13 +7099,12 @@ int32 Unit::SpellBaseDamageBonusDone(SpellSchoolMask schoolMask) const
int32 DoneAdvertisedBenefit = GetTotalAuraModifierByMiscMask(SPELL_AURA_MOD_DAMAGE_DONE, schoolMask);
if (GetTypeId() == TYPEID_PLAYER)
if (thisPlayer)
{
// Base value
DoneAdvertisedBenefit += ToPlayer()->GetBaseSpellPowerBonus();
DoneAdvertisedBenefit += thisPlayer->GetBaseSpellPowerBonus();
// Check if we are ever using mana - PaperDollFrame.lua
if (GetPowerIndex(POWER_MANA) != MAX_POWERS)
if (thisPlayer->GetPrimaryStat() == STAT_INTELLECT)
DoneAdvertisedBenefit += std::max(0, int32(GetStat(STAT_INTELLECT))); // spellpower from intellect
// Damage bonus from stats