ダメージをためては反映するには変数を使います。
今回は変数dにダメージをためて、0より大きければダメージリアクションするをやっています。
We use a variable to store accumulated damage and apply it later.
In this example, we store the damage in a variable called “d”. If the value of “d” is greater than0, the character performs a damage reaction.