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

[DSK] Implement Osseous Sticktwister #13421

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

Conversation

earchip94
Copy link

Also added some unit tests to test common cases that could occur during gameplay.

@earchip94 earchip94 changed the title Added Osseous Sticktwister [DSK] Implemented Osseous Sticktwister Mar 9, 2025
@earchip94 earchip94 changed the title [DSK] Implemented Osseous Sticktwister [DSK] Implement Osseous Sticktwister Mar 12, 2025
OsseousSticktwisterEffect() {
super(Outcome.Benefit);
this.staticText = "each opponent may sacrifice a nonland permanent or discard a card. Then {this} "
+ "deals damage equal to it's power to each opponent who didn't sacrifice a permanent or discard a card in this way.";
Copy link
Contributor

Choose a reason for hiding this comment

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

"its" not "it's" power

}
}
// They either can't discard or sacrifice or chose not to.
opponent.damage(dmg.getValue(), source.getSourceId(), source, game);
Copy link
Contributor

Choose a reason for hiding this comment

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

not correct, as all damage must be dealt simultaneously at the end. Need to store it (probably a map of UUID to Integer), processAction after the loop, then foreach on the stored values

boolean canPay = cost.canPay(source, source, id, game);

if (canPay)
{
Copy link
Contributor

Choose a reason for hiding this comment

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

style, no newline before opening brace

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