Hierarchy (view full)

Constructors

  • Constructor for creating a new SwitchSummonPhase

    Parameters

    • scene: default

      BattleScene the scene the phase is associated with

    • switchType: SwitchType

      the type of switch behavior

    • fieldIndex: number

      integer representing position on the battle field

    • slotIndex: number

      integer for the index of pokemon (in party of 6) to switch into

    • doReturn: boolean

      boolean whether to render "comeback" dialogue

    • Optionalplayer: boolean

      boolean if the switch is from the player

    Returns SwitchSummonPhase

Properties

fieldIndex: number
partyMemberIndex: number
player: boolean
scene: default

Methods

  • Handles tweening and battle setup for a wild Pokemon that appears outside of the normal screen transition. Wild Pokemon will ease and fade in onto the field, then perform standard summon behavior. Currently only used by Mystery Encounters, as all other battle types pre-summon wild pokemon before screen transitions.

    Returns void