#include "macros/btlcmd.inc"


_000:
    UpdateVar OPCODE_FLAG_ON, BTLVAR_BATTLE_CTX_STATUS, SYSCTL_IGNORE_TYPE_CHECKS
    Random 10, 5
    UpdateMonDataFromVar OPCODE_GET, BTLSCR_ATTACKER, BATTLEMON_LEVEL, BTLVAR_DAMAGE
    UpdateVarFromVar OPCODE_MUL, BTLVAR_DAMAGE, BTLVAR_CALC_TEMP
    UpdateVar OPCODE_DIV, BTLVAR_DAMAGE, 10
    CompareVarToValue OPCODE_NEQ, BTLVAR_DAMAGE, 0, _028
    UpdateVar OPCODE_SET, BTLVAR_DAMAGE, 1

_028:
    UpdateVar OPCODE_MUL, BTLVAR_DAMAGE, -1
    End 
