Fix mouse event bugs; add flashing damage behavior