mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-17 07:15:22 +01:00
* Force switch implemenation * Fix conditionals checking `SwitchType` Use `prependToPhase()` instead of `unshiftPhase()` * Update comments slightly, replace `||` chain with `.includes()` --------- Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
17 lines
647 B
TypeScript
17 lines
647 B
TypeScript
/**
|
|
* Indicates the type of switch functionality that a {@linkcode SwitchPhase}
|
|
* or {@linkcode SwitchSummonPhase} will carry out.
|
|
*/
|
|
export enum SwitchType {
|
|
/** Switchout specifically for when combat starts and the player is prompted if they will switch Pokemon */
|
|
INITIAL_SWITCH,
|
|
/** Basic switchout where the Pokemon to switch in is selected */
|
|
SWITCH,
|
|
/** Transfers stat stages and other effects from the returning Pokemon to the switched in Pokemon */
|
|
BATON_PASS,
|
|
/** Transfers the returning Pokemon's Substitute to the switched in Pokemon */
|
|
SHED_TAIL,
|
|
/** Force switchout to a random party member */
|
|
FORCE_SWITCH,
|
|
}
|