047 store entity take auto discharge under foreach

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

took hp 9
despawned an enemy
took hp 9
despawned an enemy
took hp 9
despawned an enemy

Expected output

took hp 9
despawned an enemy
took hp 9
despawned an enemy
took hp 9
despawned an enemy

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: enemies, capacity: 64, source: hp: i64)
subflow ~discharge-enemy click a branch to expand · @labels scroll to their anchor
print.ln (expr: "despawned an enemy")
flow ~for click a branch to expand · @labels scroll to their anchor
for (0..3)

Test Configuration

MUST_RUN