if (damaged == 0 && canbehit && (!flashing)) { myhealth -= 1 event_user(1) }