Skip to content

[TMC] Implement Shellshock#14580

Open
muz wants to merge 1 commit intomagefree:masterfrom
muz:tmc_shellshock
Open

[TMC] Implement Shellshock#14580
muz wants to merge 1 commit intomagefree:masterfrom
muz:tmc_shellshock

Conversation

@muz
Copy link
Copy Markdown
Contributor

@muz muz commented Mar 1, 2026

Linked to #14007

@github-actions github-actions bot added the cards label Mar 1, 2026
if (permanent == null) {
continue;
}
int damage = GetXValue.instance.calculate(game, source, this);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you can move this outside the loop since it stays the same

}
int damage = GetXValue.instance.calculate(game, source, this);
if (damage > 0) {
permanent.damage(damage, source.getSourceId(), source, game);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this method returns the amount of damage dealt so you can use that to determine whether it happened


DamagedByWatcher watcher = game.getState().getWatcher(DamagedByWatcher.class, source.getSourceId());
if (watcher != null && watcher.wasDamaged(permanentId, game)) {
new MutagenToken().putOntoBattlefield(1, game, source);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you should count the amount of successful damages and then create that many tokens once

ShellshockEffect() {
super(Outcome.Damage);
staticText = "for each opponent, choose up to one target creature that player controls."
+ " Shellshock deals X damage to each of those creatures."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remember to us {this}

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.

2 participants