aura_env variable not passed correctly to custom check
Causese opened this issue ยท 0 comments
Describe the bug
i defined an aura_env. variable in on init and it doesn't seem to be passed correctly to custom check when load conditions are present.
Do you have an error log of what happened?
23x [string "--[==[ Error in 'custom check' ]==] return ..."]:3: attempt to index local 'aura_env' (a nil value)
[string "=[C]"]: in function `xpcall'
[string "@WeakAuras\Conditions.lua"]:145: in function `CallCustomConditionTest'
[string "--[==[ Error in 'New':'condition checks' ]==] local newActiveConditions = {};
local propertyChanges = {};
local nextTime;
local uid = "Ow4r2pTWmZn"
return function(region, hideRegion)
local id = region.id
local cloneId = region.cloneId or ''
local state = region.states
local activatedConditions = WeakAuras.GetActiveConditions(id, cloneId)
wipe(newActiveConditions)
local recheckTime;
local now = GetTime();
if (not hideRegion) then
if (state and WeakAuras.CallCustomConditionTest("Ow4r2pTWmZn", 1, state)) then
newActiveConditions[1] = true;
end
end
if (recheckTime) then
WeakAuras.scheduleConditionCheck(recheckTime, uid, cloneId);
end
wipe(propertyChanges)
if (activatedConditions[1] and not newActiveConditions[1]) then
propertyChanges['sub.2.glow'] = false
end
if (newActiveConditions[1]) then
if (not activatedConditions[1]) then
propertyChanges['sub.2.glow'] = true
else
if(propertyChanges['sub.2.glow'] ~= nil) then
propertyChanges['sub.2.glow'] = true
end
end
end
activatedConditions[1] = newActiveConditions[1]
if(propertyChanges['sub.2.glow'] ~= nil) then
region.subRegions[2]:SetVisible(propertyChanges['sub.2.glow'])
end
end
"]:14: in function `?'
[string "@WeakAuras\Conditions.lua"]:643: in function `RunConditions'
[string "@WeakAuras\WeakAuras-3.1.2.lua"]:3934: in function <WeakAuras\WeakAuras.lua:3900>
[string "@WeakAuras\WeakAuras-3.1.2.lua"]:4033: in function `UpdatedTriggerState'
[string "@WeakAuras\BuffTrigger2.lua"]:1383: in function <WeakAuras\BuffTrigger2.lua:1375>
[string "@WeakAuras\BuffTrigger2.lua"]:1699: in function <WeakAuras\BuffTrigger2.lua:1692>
Locals:
Skipped (In Encounter)
To Reproduce
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Vtme4tBGXixv7xQPL5WkTiAA5G73uz4Y6S4M9GzE)RSDDIeFOazeQu3)2sLthdKP4d9B51UDp5vBVydrULWg7izCtqbAZCw8A17Yo55doT5KZER3m7m1ktpGzl7V9qVikeD5rfopBVftjsMP1UUSOTw8MssZHSoj5CltF(37ud)Lkq5qTDKcPZULwRsaFKHx7(C2b4XYikHpgW8wOhTitkW7e9CZtrnA2WONwS7MM6rsZOK9RQ8(Pg)yJMvN(xx8p)
- make sure on init doesn't get initialized by opening options or /reload before step 3+
- make sure some buff is applied to you
- get into combat
- expected result is the aura glowing but instead you will get an error and no glow
Screenshots
Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?
Which version of WeakAuras are you using?
3.1.2
Are you on World of Warcraft Classic or Retail?
- Classic
- Retail
Was it working in a previous version? If yes, which was the last good one?
no idea