Code: Select all
local NPC = require "mod.class.NPC"
Code: Select all
Lua Error: /engine/interface/GameTargeting.lua:137: /engine/interface/ActorTalents.lua:164: /engine/interface/ActorTemporaryEffects.lua:123: attempt to index local 'ed' (a nil value)
stack traceback:
/engine/interface/ActorTemporaryEffects.lua:123: in function 'setEffect'
/data-dreadnecromancer/damage_types.lua:68: in function 'projector'
/engine/interface/ActorProject.lua:259: in function 'project'
/data-dreadnecromancer/talents/spells/grave-raz.lua:42: in function </data-dreadnecromancer/talents/spells/grave-raz.lua:37>
[C]: in function 'xpcall'
/engine/interface/ActorTalents.lua:162: in function </engine/interface/ActorTalents.lua:151>
At [C]:-1
At [C]:-1 error
At /engine/interface/GameTargeting.lua:137 fct
At /engine/interface/GameTargeting.lua:143 targetMode
At /engine/interface/GameTargeting.lua:212
At /engine/KeyBind.lua:231
If the add-on which adds the new effect has a lower weight than the add-on with the NPC require line, there is no issue. Additionally, if this line is moved inside of a function or other table, the issue is resolved. It doesn't seem that any other require will cause an issue like this, as many add-ons will define them at the beginning of a talent file, outside of any function or table.
It likely is not an issue outside of add-on conflicts, but it struck me as being bizarre enough to warrant documenting.