The has hit points and deals damage.

Every time you click the button, the function returns a random number between 1 and 20. If your attack roll is greater than 10, you will deal damage. Once the Wizard reaches 0 Hit Points you win the fight.