Skip to content

[SOS] Implement Mana Sculpt#14659

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

[SOS] Implement Mana Sculpt#14659
muz wants to merge 1 commit intomagefree:masterfrom
muz:sos_mana_sculpt

Conversation

@muz
Copy link
Copy Markdown
Contributor

@muz muz commented Apr 5, 2026

Linked to #14329

@github-actions github-actions bot added the cards label Apr 5, 2026
@muz muz force-pushed the sos_mana_sculpt branch from 2b19cdc to d4e0abd Compare April 7, 2026 02:50
@muz muz requested a review from theelk801 April 7, 2026 02:50
if (spell != null) {
game.getStack().counter(source.getFirstTarget(), source, game);

for (Permanent permanent : game.getBattlefield().getAllActivePermanents(source.getControllerId())) {
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.

I'm not sure why you're checking this way, you should just do a filter check instead of looping like this

@Override
public boolean apply(Game game, Ability source) {
Spell spell = game.getStack().getSpell(getTargetPointer().getFirst(game, source));
if (spell != null) {
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.

invert this into a guard statement

public boolean apply(Game game, Ability source) {
Spell spell = game.getStack().getSpell(getTargetPointer().getFirst(game, source));
if (spell != null) {
game.getStack().counter(source.getFirstTarget(), 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.

you should use spell.getId() instead of source.getFirstTarget()

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