testmode random Auras + Interrupts only with enabled Auras + Interrupts

This commit is contained in:
Sumsebrum
2021-07-29 15:13:19 +02:00
parent 0d5b5644a9
commit 74753e327c
3 changed files with 62 additions and 27 deletions

View File

@ -1,5 +1,5 @@
local select = select
local pairs,ipairs,tbl_sort,tinsert,format = pairs,ipairs,table.sort,tinsert,format
local pairs,ipairs,tbl_sort,tinsert,format,rand = pairs,ipairs,table.sort,tinsert,format,math.random
local GetSpellInfo = GetSpellInfo
local CreateFrame = CreateFrame
@ -261,7 +261,7 @@ function Diminishings:Test(unit)
for spellID,category in pairs(DRData:GetSpells()) do
if Gladdy.db.drCategories[category].enabled then
if not limit[category] then
limit[category] = { count = 1, limit = math.random(1,3) }
limit[category] = { count = 1, limit = rand(1,3) }
else
limit[category].count = limit[category].count + 1
end