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

[ACR] Add Viewpoint Synchronization #13068

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kr4u7
Copy link
Contributor

@Kr4u7 Kr4u7 commented Nov 17, 2024

https://scryfall.com/card/acr/43/viewpoint-synchronization

There was no clean way to put more than two permanents to the battlefield, that I could find.
That's why I wrote a small Effect for that to be used. It feels okay to use in GUI, but I bet there is a better way as well.
Happy to receive feedback :)


if (target.getTargets().size() >= 2) {
Cards cardsToHand = new CardsImpl(revealed);
while (cardsToHand.size()>1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't use a while loop. Instead, increase the max number of targets on the TargetCardInLibrary.

I'm not a fan of this code duplication. Instead, consider if you can accomplish it by adding an int numToBattlefield parameter to the common class you copied this from.

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