Zij-IT/Roguelike

Monsters move onto player

Zij-IT opened this issue · 1 comments

While testing around with monsters, I noticed that they can walk onto the player, and then attack the player. The player is not able to attack them while they are under him. Various testing shows this to be the case with every monster (unsurprisingly), so it is an issue in the movement code!

Didn't assign this, or tag it correctly, but small steps! The issue lies in the fact that monster path-finding doesn't actually check the map. I have "fixed it" by checking that the monster is within 2 squares of the player, it should attempt to attack the player. This was the intention of the simple AI, and as thus, the issue is resolved.