I've moved a lot of the checks for item/ability activation to the RaidState class and tried to set things up so that things will be activated when trigger conditions are met (e.g. taking damage, terrain change, applying a stat boost) regardless of when it happens during a move/turn.
I've tested a few of our more recent tricky test cases, as well as previous ERS strats, and things seem to be working.
I've also added Opportunist, Acupressure (sort of), and some more abilities that are activated by taking a hit from an opponent
Other things that I've included here:
fixed issues with role names being loaded from the URL hash
make sure MoveData is loaded before running the calc for strats from the URL hash
I've moved a lot of the checks for item/ability activation to the
RaidState
class and tried to set things up so that things will be activated when trigger conditions are met (e.g. taking damage, terrain change, applying a stat boost) regardless of when it happens during a move/turn.I've tested a few of our more recent tricky test cases, as well as previous ERS strats, and things seem to be working.
I've also added Opportunist, Acupressure (sort of), and some more abilities that are activated by taking a hit from an opponent
Other things that I've included here: