#include "macros/btlcmd.inc"


_000:
    UpdateVar OPCODE_FLAG_ON, BTLVAR_BATTLE_CTX_STATUS_2, SYSCTL_RECALC_MON_STATS
    UpdateMonData OPCODE_SET, BTLSCR_MSG_BATTLER_TEMP, BATTLEMON_FORM_NUM, 0
    UpdateVar OPCODE_SET, BTLVAR_SCRIPT_TEMP, 0
    CompareMonDataToValue OPCODE_FLAG_SET, BTLSCR_MSG_BATTLER_TEMP, BATTLEMON_PERSONALITY, 1, _024
    LoadArchivedMonData SPECIES_GIRATINA, BTLVAR_SCRIPT_TEMP, SPECIES_DATA_ABILITY_1
    GoTo _028

_024:
    LoadArchivedMonData SPECIES_GIRATINA, BTLVAR_SCRIPT_TEMP, SPECIES_DATA_ABILITY_2

_028:
    UpdateMonDataFromVar OPCODE_SET, BTLSCR_MSG_BATTLER_TEMP, BATTLEMON_ABILITY, BTLVAR_CALC_TEMP
    Call BATTLE_SUBSCRIPT_FORM_CHANGE
    RefreshMonData BTLSCR_MSG_BATTLER_TEMP
    End 
