Skip to content

Commit

Permalink
Tweak rtb_buffs_will_lose count.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Jan 17, 2024
1 parent 0d2ecb5 commit d8c97b7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dragonflight/RogueOutlaw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,14 @@ spec:RegisterStateExpr( "rtb_buffs_longer", function ()
end )

spec:RegisterStateExpr( "rtb_buffs_will_lose", function ()
return rtb_buffs_normal + rtb_buffs_shorter
local count = 0
count = count + ( rtb_buffs_will_lose_buff.broadside and 1 or 0 )
count = count + ( rtb_buffs_will_lose_buff.buried_treasure and 1 or 0 )
count = count + ( rtb_buffs_will_lose_buff.grand_melee and 1 or 0 )
count = count + ( rtb_buffs_will_lose_buff.ruthless_precision and 1 or 0 )
count = count + ( rtb_buffs_will_lose_buff.skull_and_crossbones and 1 or 0 )
count = count + ( rtb_buffs_will_lose_buff.true_bearing and 1 or 0 )
return count
end )

spec:RegisterStateTable( "rtb_buffs_will_lose_buff", setmetatable( {}, {
Expand Down

0 comments on commit d8c97b7

Please sign in to comment.