Skip to content

Commit

Permalink
Fix aura rank
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Nov 13, 2023
1 parent 8fc77aa commit 436a75b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/StatLogic/StatLogic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,6 @@ do
if not mod.tab and mod.rank then -- not a talent, so the rank is the buff rank
aura.rank = #(mod.rank)
end
aura.stacks = mod.buffStack or 1
local name = GetSpellInfo(mod.buff)
if name then
always_buffed_aura_info[name] = aura
Expand All @@ -783,7 +782,7 @@ do
repeat
local aura = {}
local name
name, _, aura.stacks, _, _, _, _, _, _, aura.spellId = UnitBuff("player", i)
name, _, _, _, _, _, _, _, _, aura.spellId = UnitBuff("player", i)
if name then
aura_cache[name] = aura
end
Expand Down Expand Up @@ -1114,8 +1113,9 @@ do
end
table.insert(addon.StatModCacheInvalidators["CHARACTER_POINTS_CHANGED"], stat)
elseif case.buff and case.rank then
local r = GetPlayerBuffRank(case.buff)
value = case.rank[r]
local aura = StatLogic:GetAuraInfo(GetSpellInfo(case.buff))
local rank = aura.rank or GetPlayerBuffRank(aura.spellId)
value = case.rank[rank]
elseif case.value then
value = case.value
end
Expand Down

0 comments on commit 436a75b

Please sign in to comment.