Superloading new poison effects
Posted: Wed Nov 04, 2015 2:39 pm
I'm trying to load a new type of poison to be used by Vile Poisons. While most of the talents work fine, the new poison types fail with the following error when they attempt to apply:
I've included my Poisons.lua superload file below:
http://pastebin.com/qTcx8HLE
Code: Select all
stack traceback:
[C]: in function 'error'
/engine/interface/ActorTalents.lua:248: in function </engine/interface/ActorTalents.lua:232>
Lua Error: /engine/interface/ActorTalents.lua:271: /engine/interface/ActorTalents.lua:248: /engine/interface/ActorTalents.lua:148: /mod/class/interface/Combat.lua:861: attempt to call a nil value
stack traceback:
/mod/class/interface/Combat.lua:861: in function 'attackTargetWith'
/mod/class/interface/Combat.lua:190: in function 'attackTarget'
/data/talents/misc/misc.lua:75: in function </data/talents/misc/misc.lua:54>
[C]: in function 'xpcall'
/engine/interface/ActorTalents.lua:145: in function </engine/interface/ActorTalents.lua:138>
At [C]:-1
At [C]:-1 error
At /engine/interface/ActorTalents.lua:271 bumpInto
At /mod/class/Actor.lua:3342 attack
At /engine/interface/ActorLife.lua:41 check
At [string "return function(self, x, y, what, ...) local ..."]:1 checkAllEntities
At /engine/Actor.lua:198 move
At /mod/class/Actor.lua:1260 move
At /mod/class/Player.lua:296 move
At /engine/interface/PlayerMouse.lua:61 mouseMove
At /engine/interface/PlayerMouse.lua:133 mouseHandleDefault
At /mod/class/Game.lua:2151 fct
At /engine/Mouse.lua:56
http://pastebin.com/qTcx8HLE