refactor: use setter method and private field

This commit is contained in:
xenohedron 2024-04-12 20:11:04 -04:00
parent 577a3708fc
commit f3fccfbd8a
29 changed files with 31 additions and 31 deletions

View file

@ -17,7 +17,7 @@ public class EntersBattlefieldTriggeredAbility extends TriggeredAbilityImpl {
public EntersBattlefieldTriggeredAbility(Effect effect, boolean optional) {
super(Zone.ALL, effect, optional); // Zone.All because a creature with trigger can be put into play and be sacrificed during the resolution of an effect (discard Obstinate Baloth with Smallpox)
this.replaceRuleText = true; // default true to replace "{this}" with "it"
this.withRuleTextReplacement(true); // default true to replace "{this}" with "it"
setTriggerPhrase("When {this} enters the battlefield, ");
}