If an enemy with the Unescapeable bit jumps off-screen, then you can run from 
battle.

Is this a bug, or a feature? Should we add a backcompat bit or a battle system 
pref bit to toggle it?

It happens because:
```
FUNCTION checkNoRunBit (bslot() as BattleSprite) as bool
 FOR i as integer = 4 TO 11
  IF bslot(i).stat.cur.hp > 0 AND bslot(i).vis = YES AND bslot(i).unescapable = 
YES THEN RETURN YES
 NEXT i
 RETURN NO
END FUNCTION
```
`BattleSprite.vis` is false while an combatant has jumped offscreen.
`vis` is used for many different purposes in many different places. I know it's 
short for "visible", but I spent an hour trying to figure out what it 
*actually* means. There are a set of exceptions (which I've now documented), 
and I consider any code that makes use of `vis` as suspect.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1107
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to