Skip to content

Commit a690193

Browse files
committed
System - Fixed Bug with Talent Info
1 parent 983a0d1 commit a690193

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Rotations/Druid/Feral/FeralCuteOne.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ actionList.Extras = function()
460460
if cast.tigersFury() then ui.debug("Casting Tiger's Fury [Death Cat Mode]") return true end
461461
end
462462
-- Savage Roar - Use Combo Points
463-
if cast.able.savageRoar() and comboPoints >= 5 then
463+
if cast.able.savageRoar() and comboPoints() >= 5 then
464464
if cast.savageRoar() then ui.debug("Casting Savage Roar [Death Cat Mode]") return true end
465465
end
466466
-- Shred - Single
@@ -730,7 +730,7 @@ actionList.Interrupts = function()
730730
for i=1, #enemies.yards5f do
731731
thisUnit = enemies.yards5f[i]
732732
if unit.interruptable(thisUnit,ui.value("Interrupt At"))
733-
and comboPoints > 0 and not buff.fieryRedMaimers.exists()
733+
and comboPoints() > 0 and not buff.fieryRedMaimers.exists()
734734
then
735735
if cast.maim(thisUnit) then ui.debug("Casting Maim on "..unit.name(thisUnit)) return true end
736736
end

System/Loader/cBuilder.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ function br.loader:new(spec,specName)
174174
local nodes = br._G.C_Traits.GetTreeNodes(treeId)
175175
for _, nodeId in pairs(nodes) do
176176
local node = br._G.C_Traits.GetNodeInfo(configId, nodeId)
177-
local activeid = (node.activeRank > 0 or node.ranksPurchased > 0) and node.activeEntry and node.activeEntry.entryID or node.entryIDs[1]
178177
for _, entryID in pairs(node.entryIDs) do
179178
local entryInfo = br._G.C_Traits.GetEntryInfo(configId,entryID)
180179
local definitionInfo = br._G.C_Traits.GetDefinitionInfo(entryInfo.definitionID)
181180
if definitionInfo.spellID ~= nil then
181+
local rank = node.activeRank
182182
talents[definitionInfo.spellID] = talents[definitionInfo.spellID] or {}
183-
talents[definitionInfo.spellID].active = entryID == activeid
184-
talents[definitionInfo.spellID].rank = node.activeRank
183+
talents[definitionInfo.spellID].active = rank > 0
184+
talents[definitionInfo.spellID].rank = rank
185185
end
186186
end
187187
end

0 commit comments

Comments
 (0)