[b35] lua error when NPCs use Beckon on PC
Posted: Tue Dec 06, 2011 6:40 am
NPC using the talent Beckon on the players character results in a lua error:The function "moveDirection" is defined in "engine/interface/ActorAI.lua", which the player class doesn't use. I think the best solution would be to set "no_npc_use = true" for the talent Beckon, because it can be very, very nasty, and it feels very unfair when it actually works against the PC (which, fortunately, doesn't actually work in b35
).
Code: Select all
Lua Error: /data/timed_effects/mental.lua:451: attempt to call method 'moveDirection' (a nil value)
At [C]:-1 moveDirection
At /data/timed_effects/mental.lua:451 on_timeout
At /engine/interface/ActorTemporaryEffects.lua:76 timedEffects
At /mod/class/Actor.lua:332 actBase
At /engine/GameEnergyBased.lua:108 tickLevel
At /engine/GameEnergyBased.lua:62 tick
At /engine/GameTurnBased.lua:44 tick
At /mod/class/Game.lua:926
