Skip to content

Commit

Permalink
Fix tinker item swap timer
Browse files Browse the repository at this point in the history
  • Loading branch information
1337LutZ committed Jan 19, 2025
1 parent 8fba20b commit 3192361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sim/core/item_swaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ func (swap *ItemSwap) ProcessTinker(spell *Spell, slots []proto.ItemSlot) {
isUniqueItem := swap.GetEquippedItemBySlot(slot).ID != swap.GetUnequippedItemBySlot(slot).ID

var newSpellCD time.Duration
timeToReady := spell.CD.TimeToReady(sim)
if isUniqueItem {
// Unique items have a 30s CD regardless of the spell CD being > 30s or not
newSpellCD = max(timeToReady, time.Second*30)
newSpellCD = time.Second * 30
} else {
// Items with the same ItemID share the CD and does not get reset to 30s
timeToReady := spell.CD.TimeToReady(sim)
newSpellCD = TernaryDuration(timeToReady > 30, timeToReady, time.Second*30)
}

Expand Down

0 comments on commit 3192361

Please sign in to comment.