[BUG] 10th seed slot is ignored by sun-producing plant validation
Platform: PC / Steam
Game: Plants vs. Zombies: Replanted
Mode: Adventure — Roof (World 5)
Description:
After purchasing the 10th seed slot, I discovered that the game fails to recognize Sunflower when it is placed in that slot.
Steps to reproduce:
- Unlock all 10 seed slots.
- Start a Roof level in Adventure Mode.
- Select Sunflower as the only sun-producing plant and place it in slot 10.
- Fill the remaining slots with other plants.
- Click "Let's Rock!"
Actual result:
The game incorrectly displays:
"You haven't chosen any sun producing plants, are you sure you want to continue?"
Expected result:
No warning should appear because Sunflower is selected.
Additional testing:
I swapped Sunflower (slot 10) with Cherry Bomb (slot 9), keeping all the same plants selected.
The warning immediately disappeared.
This suggests that the validation logic only checks the first 9 seed slots and ignores the 10th slot.
Workaround:
Move Sunflower to any of the first 9 slots.
Attachment:
Screenshot showing Sunflower in slot 10 and the incorrect warning.