2 lines
45 B
JavaScript

this.actor.hasCondition("broken")?.delete();