How to test if a banish just expired this turn?

BillyTheBanana

New member
Hi, I'm pretty new to the forum so I hope I am doing everything right. Thanks for everything you guys do.

I'm trying to write a between-battle script that switches my parka mode depending on whether or not a particular monster is banished. For the most part, using is_banished() works. However, on the turn when the banish expires, is_banished() still returns true even though I might be about to encounter it. So is there some way to solve this? The only ideas I could think of would be cumbersome, such as parsing cli_execute_output("banishes") to see if the monster is "banished" with 0 turns remaining.

Thanks for any help!
 
Top