#include "macros/btlcmd.inc"


_000:
    CheckAbility CHECK_HAVE, BTLSCR_MSG_TEMP, ABILITY_SOUNDPROOF, _015
    CompareVarToValue OPCODE_FLAG_NOT, BTLVAR_FIELD_CONDITIONS, FIELD_CONDITION_UPROAR, _015
    // The uproar woke up the {0}!
    PrintMessage pl_msg_00000368_00305, TAG_NICKNAME, BTLSCR_MSG_TEMP
    GoTo _019

_015:
    // {0} woke up!
    PrintMessage pl_msg_00000368_00302, TAG_NICKNAME, BTLSCR_MSG_TEMP

_019:
    Wait 
    SetHealthbarStatus BTLSCR_MSG_TEMP, BATTLE_ANIMATION_NONE
    WaitButtonABTime 30
    UpdateMonData OPCODE_FLAG_OFF, BTLSCR_MSG_TEMP, BATTLEMON_STATUS, MON_CONDITION_SLEEP
    UpdateMonData OPCODE_FLAG_OFF, BTLSCR_MSG_TEMP, BATTLEMON_VOLATILE_STATUS, VOLATILE_CONDITION_NIGHTMARE
    End 
