forked from External/mage
fix getText() overrides ignoring staticText (#11044)
* fix text: SkipNextPlayerUntapStepEffect * remove old copyright info * individual card text fixes * fix overrides ignoring staticText
This commit is contained in:
parent
52eaa600ba
commit
869de1eac6
30 changed files with 63 additions and 426 deletions
|
|
@ -2,7 +2,6 @@ package mage.abilities.effects.common;
|
|||
|
||||
import mage.MageObject;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.Card;
|
||||
import mage.constants.Outcome;
|
||||
|
|
@ -18,8 +17,7 @@ public class PutOnLibrarySourceEffect extends OneShotEffect {
|
|||
private final boolean onTop;
|
||||
|
||||
public PutOnLibrarySourceEffect(boolean onTop) {
|
||||
super(Outcome.ReturnToHand);
|
||||
this.onTop = onTop;
|
||||
this(onTop, "put {this} on " + (onTop ? "top" : "the bottom") + " of its owner's library");
|
||||
}
|
||||
|
||||
public PutOnLibrarySourceEffect(boolean onTop, String rule) {
|
||||
|
|
@ -50,17 +48,4 @@ public class PutOnLibrarySourceEffect extends OneShotEffect {
|
|||
}
|
||||
return player.putCardsOnBottomOfLibrary((Card) sourceObject, game, source, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getText(Mode mode) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (this.staticText != null && !this.staticText.isEmpty()) {
|
||||
sb.append(staticText);
|
||||
} else {
|
||||
// Put Champion of Stray Souls on top of your library from your graveyard
|
||||
sb.append("put {this} on ");
|
||||
sb.append(onTop ? "top" : "the bottom").append(" of its owner's library");
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue