XuaXua wrote:don't walk INTO a flame cloud looking for me if you know you'll just die.
Sure, but the AI doesn't know. When evaluating whether or not to enter a cloud, it doesn't look how many there are, it's a very simple check, based on a roll against the monster's current HP. Once it's in a cloud, it won't really try to get out and moving to another is fine.
So yes, we're aware of the issue, and I know how to fix it, but it isn't simple. We need to do a pathfinding weighted with expected damage.
Regarding the OP, I'm not sure it's really a problem. If a monster at low HP fireballs itself (and you of course), then it has made a good use of its last HP. It's good that monsters try harder kilking you than surviving. That's why intelligent monsters don't flee. It might not be realistic, but it's better gameplay.
<+Grunt> You dereference an invalid pointer! Ouch! That really hurt! The game dies...