mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
text fixes
This commit is contained in:
parent
b4da526770
commit
d7a8af00c1
6 changed files with 24 additions and 12 deletions
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
package mage.abilities.effects.common.counter;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.constants.Outcome;
|
||||
import mage.counters.CounterType;
|
||||
|
|
@ -24,7 +24,6 @@ public class RemoveAllCountersPermanentTargetEffect extends OneShotEffect {
|
|||
public RemoveAllCountersPermanentTargetEffect(CounterType counterType) {
|
||||
super(Outcome.Neutral);
|
||||
this.counterType = counterType;
|
||||
staticText = "remove all " + (counterType == null ? "" : counterType.getName() + " ") + "counters from it.";
|
||||
}
|
||||
|
||||
public RemoveAllCountersPermanentTargetEffect(RemoveAllCountersPermanentTargetEffect effect) {
|
||||
|
|
@ -50,4 +49,14 @@ public class RemoveAllCountersPermanentTargetEffect extends OneShotEffect {
|
|||
public RemoveAllCountersPermanentTargetEffect copy() {
|
||||
return new RemoveAllCountersPermanentTargetEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getText(Mode mode) {
|
||||
if (staticText != null && !staticText.isEmpty()) {
|
||||
return staticText;
|
||||
}
|
||||
return "remove all " + (counterType == null ? "" : counterType.getName() + " ") + "counters from "
|
||||
+ getTargetPointer().describeTargets(mode.getTargets(), "it");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@ package mage.game.command.emblems;
|
|||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.continuous.GainRetraceYourGraveyardEffect;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.common.FilterInstantOrSorceryCard;
|
||||
import mage.game.command.Emblem;
|
||||
|
||||
/**
|
||||
|
|
@ -11,11 +12,13 @@ import mage.game.command.Emblem;
|
|||
*/
|
||||
public final class WrennAndSixEmblem extends Emblem {
|
||||
|
||||
private static final FilterCard filter = new FilterInstantOrSorceryCard("instant and sorcery cards");
|
||||
|
||||
public WrennAndSixEmblem() {
|
||||
super("Emblem Wrenn");
|
||||
// Instant and sorcery cards in your graveyard have retrace.
|
||||
this.getAbilities().add(new SimpleStaticAbility(
|
||||
Zone.COMMAND, new GainRetraceYourGraveyardEffect(StaticFilters.FILTER_CARD_INSTANT_AND_SORCERY)
|
||||
Zone.COMMAND, new GainRetraceYourGraveyardEffect(filter)
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue