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

[MKM] Implement Flourishing Bloom-Kin and move Cultivate-like searches to common class #11837

Merged
merged 4 commits into from
Feb 24, 2024

Conversation

Cguy7777
Copy link
Contributor

It seemed like a good idea to move Cultivate-like search effects to a common class, since we have a half-dozen cards doing that now.

Note: Flourishing Bloom-Kin does not fully function since Disguise is not yet implemented.

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.

thanks for the refactor

Card cardToBattlefield = revealed.get(targetCardToBattlefield.getFirstTarget(), game);
if (cardToBattlefield != null) {
controller.moveCards(cardToBattlefield, Zone.BATTLEFIELD, source, game, true, false, false, null);
revealed.remove(cardToBattlefield);
Copy link
Contributor

Choose a reason for hiding this comment

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

hm, what's the point of this remove()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's there so that the card we just put onto the battlefield isn't moved to your hand along with the other cards later. I've rewritten this area a bit to try to make it easier to understand.

@xenohedron xenohedron merged commit 4e24ef2 into magefree:master Feb 24, 2024
5 checks passed
@Cguy7777 Cguy7777 deleted the flourishing_bloom-kin branch February 25, 2024 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants