Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tournaments: Support team locking #9283

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MathyFurret
Copy link
Contributor

Needs support from client, will write that later.

This adds a new command /tour teamlock that allows a tournament to force players to use the same team throughout the tournament. It can only be set before the tournament starts.

Potential issue: This can break if a ruleset is hotpatched during the tournament that makes a player's team invalid. Maybe I should add a way for prepBattle to bypass validation?

@mia-pi-git
Copy link
Member

mia-pi-git commented Jan 4, 2023

Potential issue: This can break if a ruleset is hotpatched during the tournament that makes a player's team invalid. Maybe I should add a way for prepBattle to bypass validation?

You could probably just validate once on their first battle, then cache it and assume it's fine the rest of the time.

@MathyFurret
Copy link
Contributor Author

Unless it becomes a serious issue I really don't want to rewrite battleready for this, there's not an easy fix because it validates legality and applies filters at the same time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants