Skip to content

Conversation

@earno12
Copy link
Contributor

@earno12 earno12 commented Oct 31, 2025

Fixes #8868

return game;

} else {
for (RegisteredPlayer rp : players) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this loop needed? Also, I don't like that we're using raw values in this function. It feels like it will cause problems with Vanguard cards that modify starting hand size.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the troubling code from Match class

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you? It still seems like its here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no this is outdated code

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You keep resolving this, but this IS showing up in your PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can I resolve this? Do I need to take out ' if (selectedRule == MulliganDefs.MulliganRule.Houston)' on line 80 or is the for loop 'for (RegisteredPlayer rp : players) {' on line 82 problematic? I will fix it, but I just need your guidance on what is wrong still.

@earno12 earno12 marked this pull request as draft November 7, 2025 17:28
@earno12 earno12 marked this pull request as ready for review November 23, 2025 11:04
return game;

} else {
for (RegisteredPlayer rp : players) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you? It still seems like its here.

@earno12 earno12 requested a review from tehdiplomat December 1, 2025 09:55
(SpellAbility)null
);
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tehdiplomat I have to readd the logic: if (player != null) {player.setMaxHandSize(7);} here. I tried to remove, but the game allows the player to have more than 7 cards in hand without other natural modifiers like Reliquary Tower or Thought Vessel.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay I have it fixed now in latest push.

return game;

} else {
for (RegisteredPlayer rp : players) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can I resolve this? Do I need to take out ' if (selectedRule == MulliganDefs.MulliganRule.Houston)' on line 80 or is the for loop 'for (RegisteredPlayer rp : players) {' on line 82 problematic? I will fix it, but I just need your guidance on what is wrong still.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tehdiplomat I have removed the logic from Match.java. It has been relocated to MulliganService.java. Any feedback is much appreciated.

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.

Houston Mulligan?

2 participants