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

[FIX] Maskwood Nexus not effecting MDFCs #12554

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

Conversation

grimreap124
Copy link
Contributor

Updating Maskwood Nexus to correctly apply to MDFCs.

Tutoring with Magda, Brazen Outlaw wouldn't allow you to get them when Maskwood was in play

@github-actions github-actions bot added the cards label Jul 5, 2024
Copy link
Contributor

@xenohedron xenohedron left a comment

Choose a reason for hiding this comment

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

Other notes:

  1. Are any other cards potentially in scope for the same bug?
  2. Is it possible to write a unit test that demonstrates the fix?

game.getState().getCreateMageObjectAttribute(card, game).getSubtype().setIsAllCreatureTypes(true);
}
}
controller.getHand().stream().map(game::getCard).filter(Objects::nonNull).filter(card -> card.isOwnedBy(controller.getId()) && card.isCreature(game))
Copy link
Contributor

Choose a reason for hiding this comment

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

Lots of duplicated code here. I know the original had duplicated code, but with the changes it's even worse.

Please try to streamline it e.g. by adding cards from all relevant zones to one set and by factoring out the common filter.

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

Successfully merging this pull request may close these issues.

None yet

2 participants