AI trying to use burned out runes

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Dervis
Wyrmic
Posts: 263
Joined: Thu Oct 14, 2010 9:58 am

AI trying to use burned out runes

#1 Post 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...

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: AI trying to use burned out runes

#2 Post 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.
<DarkGod> lets say it's intended

Post Reply