AdiButtonAuras

AdiButtonAuras

404k Downloads

Error in Warrior Rule

arcadepro opened this issue ยท 2 comments

commented
20x AdiButtonAuras\core\RuleDSL.lua:207: Invalid highlight, should be one of "flash", "good", "bad", "darken" of "lighten", not "nil"
[C]: ?
AdiButtonAuras\core\Overlays.lua:447: in function <AdiButtonAuras\core\Overlays.lua:440>
AdiButtonAuras\core\RuleDSL.lua:207: in function <AdiButtonAuras\core\RuleDSL.lua:204>
AdiButtonAuras\rules\Warrior.lua:65: in function `handler'
AdiButtonAuras\core\Overlays.lua:470: in function <AdiButtonAuras\core\Overlays.lua:460>

Locals:
_ = <table> {
}
key = "highlight"
value = nil
type = <function> defined =[C]:-1
error = <function> defined =[C]:-1
format = <function> defined =[C]:-1
tostring = <function> defined =[C]:-1
model = <table> {
 count = 0
 highlight = "bad"
 expiration = 10400.624
 spellId = "spell:772"
 hint = false
}

This stems from
local hasRend = BuildAuraHandler_Single("HARMFUL", nil, "enemy", 772)

I was using a nil value in a warrior rule that is later replaced by 'bad' or 'flash' as needed. I think another class rule used this same trick so that will be broken too. Could be monk/warlock.

Posting this mostly so I don't forget about fixing it.

commented

Well, I can also allow nil, since it is actually valid.

commented

Up to you. It did used to work fine previously so I assume you changed it to fix something else.