Neikun wrote:I.. don't think there's a uiName string for cloned monsters, as the players will never pick them up.
It's not about uiName cloned monsters only. As I wrote it crashes on every other method, for example
destroy(). And actually it crashes on any object in my case, I have an item in a tile and want to destroy it:
Code: Select all
onMove = function(self, direction)
for j in entitiesAt(2, self.x, self.y) do
local allowed = {"rat_shank", "grim_cap","pitroot_bread"}
for i = 1, #allowed do
j:destroy()
end
end
return true
end,
What I am doing wrong?