Open ncrecc opened 4 years ago
Ah, hmm. I thought I'd fixed this, oh well.
I think I'm going to need to implement a more extreme fix here, where things are "marked" as no longer active internally, and cleaned up in the background when it's safe. Unfortunately I don't think I can risk adding something like that to v1.9 now, so this might take a while.
In particular this crash appears to occur when an enemy receives a status at the same time the old one is being removed. For example, if the enemy uses Flight (gain dodge) and the status is completely removed by that equipment use, the game will crash.
I have a status named ncr_paralysis whose "on any equipment use" script is this:
inflictself(SHOCK); self.applyequipmentcurses(); removestatusself(~ncr_paralysis~);
When an enemy with only 1 point of that status uses a card (thus activating the above removestatusself), this error occurs:This also happens if I attempt the more direct
inflictself(SHOCK); self.applyequipmentcurses(); status._displayvalue--; status.value--; if(status.value <= 0) status.removenow();