Open Aeliko opened 3 months ago
This is also relevant to the start of turn effects, an example is #5016 which affects for example if Ditto with Imposter will transform into Normal or Terastal form Terapagos.
I didn't make a table for that, here's a Bulbapedia article instead: User:FIQ/Turn sequence
A C implementation for reference: SwitchInAbilityCheck
Also I looked at the second one and this will need a refactor and ideally combines DoFieldEndTurnEffects
DoBattlerEndTurnEffects
. I'm doing something else right now so for anyone who wants to work on it feel free to do it. Otherwise I'll do it sometime in the future.
Description
As discussed, currently the end-turn resolution order is not cartridge accurate.
ENDTURN
" case ("by-state-each-battler order")A detailed table of end-turn resolution order, with sources, combining USUM and SwSh research can be found here: https://github.com/BluRosie/hg-engine/issues/199
Version
master (default, unreleased bugfixes)
Upcoming/master Version
305c1ba55eea5a8d559128805528b4a2cc608e56
Discord contact info
___aero___