[b35] lua error when NPCs use Beckon on PC

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

[b35] lua error when NPCs use Beckon on PC

#1 Post by tiger_eye »

NPC using the talent Beckon on the players character results in a lua error:

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
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 :-P ).

Post Reply