Skip to content

[SOS] Implement Fix What's Broken#14682

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

[SOS] Implement Fix What's Broken#14682
muz wants to merge 1 commit intomagefree:masterfrom
muz:sos_fix_whats_broken

Conversation

@muz
Copy link
Copy Markdown
Contributor

@muz muz commented Apr 8, 2026

image

Linked to #14329

@github-actions github-actions bot added the cards label Apr 8, 2026
int count = CardUtil.getSourceCostsTag(game, source, "X", 0);
Set<Card> cards = you.getGraveyard().getCards(StaticFilters.FILTER_CARD_ARTIFACT_OR_CREATURE, game);
cards.removeIf(Objects::isNull);
cards.removeIf(card -> !card.isArtifact(game) && !card.isCreature(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.

you don't need either of these, the cards are always non-null and the filter already checks for artifacts and creatures

}
}

class FixWhatsBrokenEffect extends OneShotEffect {
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 could replace this with ReturnFromYourGraveyardToBattlefieldAllEffect

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