[Ohrrpgce] [ohrrpgce:bugs] #2038 Enemy which is "Ignored for "Alone" AI" doesn't count as alone when there are no other enemies
TeeEmCee
teeemcee at users.sourceforge.net
Tue Sep 11 08:48:58 PDT 2018
---
** [bugs:#2038] Enemy which is "Ignored for "Alone" AI" doesn't count as alone when there are no other enemies**
**Status:** open
**Milestone:** OHRRPGCE
**Labels:** AI attacks
**Created:** Tue Sep 11, 2018 03:48 PM UTC by TeeEmCee
**Last Updated:** Tue Sep 11, 2018 03:48 PM UTC
**Owner:** nobody
Reading the source, I notice:
~~~
'if targetable enemy count is 1, go into alone mode
IF targenemycount(bslot(), YES) = 1 THEN ai = aiAlone
~~~
Here, targenemycount counts enemies, ignoring ones with the "Ignored for "Alone" AI" bit. So if the last enemy has this bit set, it returns 0.
"= 1" should be "<= 1"
Until that bit was added in 2009 (in r2815) targenemycount instead counted the number of enemies that weren't untargetable.
---
Sent from sourceforge.net because ohrrpgce at lists.motherhamster.org is subscribed to https://sourceforge.net/p/ohrrpgce/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/ohrrpgce/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20180911/f6ee1867/attachment.html>
More information about the Ohrrpgce
mailing list