(fixed) Monsters not found on center tile
Posted: Mon Nov 26, 2007 1:37 pm
I noticed that the search_for_monster function (base\methods.lua:262) doesn't check the center tile position, and so monsters standing there are never found, which means alot of attacks miss them. This code added at around line 280 seems to fix it (I'm not yet fully caffienated, so I'm not sure if it's in the proper place):
Code: Select all
monster_id = search_for_type(lev, monx, mony, CENTER, "MONSTER")
if (monster_id) then
return monster_id
end