Simplified effects by removing unnecessary getText instances. (#9374)

This commit is contained in:
Alex Vasile 2022-09-09 12:02:22 -04:00 committed by GitHub
parent 076c55f1ea
commit 092f3c3fe1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
83 changed files with 134 additions and 677 deletions

View file

@ -83,6 +83,9 @@ public class AmplifyEffect extends ReplacementEffectImpl {
public AmplifyEffect(AmplifyFactor amplifyFactor) {
super(Duration.EndOfGame, Outcome.BoostCreature);
this.amplifyFactor = amplifyFactor;
this.staticText = amplifyFactor.toString() +
" <i>(As this enter the battlefield, " + amplifyFactor.getRuleText() + " for each card"
+ " you reveal that shares a type with it in your hand.)</i>";
}
public AmplifyEffect(final AmplifyEffect effect) {
@ -133,15 +136,6 @@ public class AmplifyEffect extends ReplacementEffectImpl {
return false;
}
@Override
public String getText(Mode mode) {
StringBuilder sb = new StringBuilder(amplifyFactor.toString());
sb.append(" <i>(As this enter the battlefield, ");
sb.append(amplifyFactor.getRuleText()).append(" for each card"
+ " you reveal that shares a type with it in your hand.)</i>");
return sb.toString();
}
@Override
public AmplifyEffect copy() {
return new AmplifyEffect(this);