Page 1 of 1

AI trying to use burned out runes

Posted: Tue Feb 22, 2011 11:54 am
by Dervis
I found this one out by accident while trying to find an aberrant freeze bug.

Mobs with an Invisibility or Speed Rune will try to keep using it even after they've exhausted the charged. I didn't save the stdout for this, but it goes something like.

============================== TACTICAL AI armoured skeleton warrior
armoured skeleton warrior 77591 tactical ai talents can use Rune: Invisibility T_RUNE:_Invisibility_1 escape
...
Can't find T_RUNE:_Invisibility_1
Lua error

It appears that the AI loses the turn doing this but I'm not sure so this might be just a meaningless bug...

Re: AI trying to use burned out runes

Posted: Tue Feb 22, 2011 3:48 pm
by yufra
You wouldn't happen to have the save and/or the stdout from that session, would you? There is code in-place that should handle this. Having said that, I am not sure when the code went in.