Skip to content

[SOS] Implement Fractal Tender#14674

Open
muz wants to merge 2 commits intomagefree:masterfrom
muz:sos_fractal_tender
Open

[SOS] Implement Fractal Tender#14674
muz wants to merge 2 commits intomagefree:masterfrom
muz:sos_fractal_tender

Conversation

@muz
Copy link
Copy Markdown
Contributor

@muz muz commented Apr 7, 2026

Linked to #14329

@github-actions github-actions bot added the cards label Apr 7, 2026
@muz muz requested a review from theelk801 April 7, 2026 23:27

class FractalTenderWatcher extends Watcher {

private final Map<UUID, Set<UUID>> map = new HashMap<>();
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 should use MageObjectReferences for the permanent

return;
}
Permanent permanent = game.getPermanent(event.getTargetId());
if (permanent != null && permanent.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 to check for it being a creature

.getState()
.getWatcher(FractalTenderWatcher.class)
.map
.get(permanentId);
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 use getOrDefault(__,Collections.emptySet()) so you don't have to null check

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