def execute_as(ctx: Context, target: Selector): for e in target.apply(ctx): c = ctx.copy() c.target = e c.redirect(execute)
def kill(ctx: Context, target: Selector): for dead in target.apply(ctx): del ctx.world.entities[dead.uuid]