Thread:FixSRwiki/@comment-46261745-20200817224708

I had to completely redo her logic and conditions, since it was so messed up (even had to repurpose her GF flags, to be 'was she active, yes no and turn she joined...) so I wanted to check with you about things I might have missed.

The way I've redone it, there's a check on every 3rd turn starting the turn Senhime joins. If any of the following are true (during the past 3 turns), she will not leave:

1. If she was assigned to a battlefield (any type), when the battlefield is initialized

2. If she holds a footsoldier battlefield permit when the footsoldier battle permit took action

3. If she is among the active commanders in a dungeon battle whenenver a floor is cleared

(There's no longer any nonsense around taking other types of actions).

It's still technically possible to switch her in during dungeon battle and out of battle before the floor is cleared, resulting in it getting missed... but checking every time switch is done seemed a bit excessive.

I'm pretty sure you have to assign her to battle before the Nuhe automatic win occurs, so that mechanic should still work. Is there anything I might have missed? 