Skip to content

Commit

Permalink
Spell Power squash
Browse files Browse the repository at this point in the history
Co-authored-by: Buds <mrbouyou@gmail.com>
  • Loading branch information
InfusOnWoW and mrbuds authored Dec 26, 2024
1 parent bbf82e6 commit ad0d959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WeakAuras/Prototypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1209,9 +1209,9 @@ end
--- @type fun(): number
function WeakAuras.GetEffectiveSpellPower()
-- Straight from the PaperDoll
local spellPower = GetSpellBonusDamage(2)
for i = 3, MAX_SPELL_SCHOOLS do
spellPower = min(spellPower, GetSpellBonusDamage(i))
local spellPower = 0
for i = 2, MAX_SPELL_SCHOOLS or 7 do
spellPower = max(spellPower, GetSpellBonusDamage(i))
end
return spellPower
end
Expand Down

0 comments on commit ad0d959

Please sign in to comment.