Bone Grab change

Moderator: Moderator

Post Reply
Message
Author
yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Bone Grab change

#1 Post by yufra »

Currently bone grab finds any open tile near the player and places the grabbed creature there. I propose we change that so the grabbed creature is placed in the first tile along the line between the player and the creature's original tile. Here is the code to do that:

Code: Select all

local l = line.new(self.x, self.y, px, py)
local nx, ny = l()
if not nx then return end
This should work since the targeting is already a bolt and that tile needs to be open.
<DarkGod> lets say it's intended

Post Reply