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

[MKC] Implement Unshakable Tail #11843

Merged
merged 2 commits into from
Feb 24, 2024
Merged

Conversation

kzymaris
Copy link
Contributor

@github-actions github-actions bot added the cards label Feb 23, 2024
this.toughness = new MageInt(2);

// When Unshakable Tail enters the battlefield and at the beginning of your upkeep, surveil 1.
this.addAbility(new UnshakableTailSurveilTriggeredAbility());
Copy link
Contributor

Choose a reason for hiding this comment

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

fyi we do have OrTriggeredAbility


@Override
public String getRule() {
return "When {this} enters the battlefield and at the beginning of your upkeep, surveil 1.";
Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer only overriding getRule when both the trigger and effect are unique, and the effect depends on the trigger. Otherwise, it's better to just setTriggerPhrase() in the constructor and let the effect text be generated automatically. This is easier to refactor, and auto text generation is preferred whenever possible because discrepancies in generated text can sometimes catch mistakes.

}
}

class UnshakableTailInvestigateTriggeredAbility extends TriggeredAbilityImpl {
Copy link
Contributor

Choose a reason for hiding this comment

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

hm, could be common class at some point (Sidisi Brood Tyrant, Devourer of Memory)

@xenohedron xenohedron merged commit 5f70079 into magefree:master Feb 24, 2024
6 checks passed
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