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