botc-release
botc-release copied to clipboard
[FEATURE] Gardener's pass-out ability only works if Gardener is on script
Description
If you have a custom character with the Gardener's special ability:
{
"type": "ability",
"name": "distribute-roles",
"time": "pregame"
}
The role distribution only work correctly if you manually change each player's character manually. If you build the bag and click "Assign X characters" it will instantly pass out the characters to all players, and reveal the character to the player.
When using the Gardener, it will randomly assign the roles, but wait for the ST to click the "Gardener: Distribute Roles".
It seems when the button "Assign X characters" is clicked, the scripts checks for the Gardener specifically, not the ability:
hasGardener(){
return this.fabled.some(s=>s.id==="gardener")
}
Potential fix:
Change this line:
return this.fabled.some(s=>s.id==="gardener")
to this:
return this.fabled.some(f => f.special.some(s => s.name === "distribute-roles"))
Steps to reproduce
- Create a custom character with the Gardeners special ability
- Create a bag
- Click "Assign X characters"
Browser
Chrome
Operating System
Windows
Date and Time
July 21st 2025 (CEST)
App User ID
8275749634202
Game Session
No response
Relevant console log output
As a Feature request also: would it be possible to "Distribute Roles" without resetting the game back to the pregame state?
Heya, this is a feature request - the "pass out characters" ability is somewhat independent of the "assign characters" ability. The latter only works if the Gardener is in play and changing it to what you suggested would require that it is always used on a Fabled, whereas it currently can also be used on non-Fabled characters. That said, moving the whole check away from the Gardener and to homebrew would also allow people to circumvent the requirement that a Gardener is in play if the roles have been manually assigned and distributed, so I'm hesitant to make this change.
As a Feature request also: would it be possible to "Distribute Roles" without resetting the game back to the
pregamestate?
No, game (stats) tracking depends on this event resetting the game history, so this will not be changed.
Heya, this is a feature request - the "pass out characters" ability is somewhat independent of the "assign characters" ability. The latter only works if the Gardener is in play and changing it to what you suggested would require that it is always used on a Fabled, whereas it currently can also be used on non-Fabled characters. That said, moving the whole check away from the Gardener and to homebrew would also allow people to circumvent the requirement that a Gardener is in play if the roles have been manually assigned and distributed, so I'm hesitant to make this change.
I completely understand. But for what it's worth, moving the check to the ability instead of the fabled itself, opens up for more homebrew potential without breaking any existing interactions.
My "potential fix" was based solely on existing code, but (i think) could easily be extended to check all characters instead of fabled's only.