19-02-2014, 08:36 AM
It seems to me that the game already sort of does this anyways simply by having a trapped imp just stand there and let itself get killed and making no attempt to run away. I'm assuming that's because the pathfinder route can't find any path that leads it away from the enemy so it stands there. So if the pathfinder function can't find a route for the imp to run along to get away from its attacker it then launches an attack on the nearest enemy (presumably one of the ones trapping it) and then resumes searching for a route to run away again, if when it's next available to attack it still can't find an escape route it attacks again and this continues until one of 3 things happens, 1- the imp dies 2-the imp finds an escape route and runs away 3- all hostile creatures in the area die or fun away.
![[Image: 11619898803_7d3a89e6bd_n.jpg]](http://farm4.staticflickr.com/3683/11619898803_7d3a89e6bd_n.jpg)
The Golden One!