Module 14 · In your browser · challenge 1 of 3 in this lesson

Contextual offers: the right item at the right time

A code cell with the real Luau runner grades it. No Studio needed.

Open

Luau
Ctrl Enter runs the cell. Checked by tests

Level 1, Apprentice

Challenge

The offer-rules cell forgets rule 1. Add it so no offer ever appears during a drill.

Start from
The game at milestone m14 (download)
Check it here
Run the code cell; the challenge completes when it passes. No Studio needed.

Done means

  • decide returns none whenever phase is not Cooldown
  • The near-miss, Shield and newcomer rules still work
  • All five tests in offer-rules pass