This commit is contained in:
Jeff Wadsworth 2022-06-27 09:45:38 -05:00
parent 12595ac651
commit a7095fc536
7 changed files with 22 additions and 21 deletions

View file

@ -1,4 +1,3 @@
package mage.cards.c;
import java.util.UUID;
@ -24,15 +23,15 @@ import mage.target.TargetPermanent;
*/
public final class ChiseiHeartOfOceans extends CardImpl {
private static final FilterPermanent filter = new FilterControlledPermanent("remove a counter from a permanent you control");
private static final FilterPermanent filter = new FilterControlledPermanent("remove a counter from a permanent you control");
static {
filter.add(TargetController.YOU.getControllerPredicate());
filter.add(CounterAnyPredicate.instance);
}
}
public ChiseiHeartOfOceans(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{U}{U}");
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}{U}");
addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.SPIRIT);
@ -41,11 +40,11 @@ public final class ChiseiHeartOfOceans extends CardImpl {
// Flying
this.addAbility(FlyingAbility.getInstance());
// At the beginning of your upkeep, sacrifice Chisei, Heart of Oceans unless you remove a counter from a permanent you control.
TargetPermanent target = new TargetPermanent(1,1,filter,true);
TargetPermanent target = new TargetPermanent(1, 1, filter, true);
target.setTargetName("a permanent you control");
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new RemoveCounterCost(target)),TargetController.YOU, false));
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new RemoveCounterCost(target)), TargetController.YOU, false));
}

View file

@ -24,6 +24,7 @@ import mage.target.common.TargetControlledPermanent;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
import mage.filter.common.FilterControlledCreaturePermanent;
/**
* @author TheElk801
@ -51,7 +52,7 @@ public final class FainTheBroker extends CardImpl {
// {T}, Remove a counter from a creature you control: Create a Treasure token.
ability = new SimpleActivatedAbility(new CreateTokenEffect(new TreasureToken()), new TapSourceCost());
ability.addCost(new RemoveCounterCost(new TargetControlledCreaturePermanent()));
ability.addCost(new RemoveCounterCost(new TargetControlledCreaturePermanent(1, 1, new FilterControlledCreaturePermanent(), true)));
this.addAbility(ability);
// {T}, Sacrifice an artifact: Create a 2/1 white and black Inkling creature token with flying.

View file

@ -23,6 +23,7 @@ import mage.players.Player;
import mage.target.common.TargetControlledCreaturePermanent;
import java.util.UUID;
import mage.filter.common.FilterControlledCreaturePermanent;
/**
* @author TheElk801
@ -47,8 +48,8 @@ public final class FalcoSparaPactweaver extends CardImpl {
// Falco Spara, Pactweaver enters the battlefield with a shield counter on it.
this.addAbility(new EntersBattlefieldAbility(
new AddCountersSourceEffect(CounterType.SHIELD.createInstance(1)),
"with a shield counter on it. <i>(If it would be dealt damage " +
"or destroyed, remove a shield counter from it instead.)</i>"
"with a shield counter on it. <i>(If it would be dealt damage "
+ "or destroyed, remove a shield counter from it instead.)</i>"
));
// You may look at the top card of your library any time.
@ -72,8 +73,8 @@ class FalcoSparaPactweaverEffect extends AsThoughEffectImpl {
FalcoSparaPactweaverEffect() {
super(AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, Duration.WhileOnBattlefield, Outcome.AIDontUseIt);
staticText = "you may cast spells from the top of your library by removing " +
"a counter from a creature you control in addition to paying their other costs";
staticText = "you may cast spells from the top of your library by removing "
+ "a counter from a creature you control in addition to paying their other costs";
}
private FalcoSparaPactweaverEffect(final FalcoSparaPactweaverEffect effect) {
@ -110,7 +111,7 @@ class FalcoSparaPactweaverEffect extends AsThoughEffectImpl {
}
Costs<Cost> newCosts = new CostsImpl<>();
newCosts.add(new RemoveCounterCost(new TargetControlledCreaturePermanent()));
newCosts.add(new RemoveCounterCost(new TargetControlledCreaturePermanent(1, 1, new FilterControlledCreaturePermanent(), true)));
newCosts.addAll(cardToCheck.getSpellAbility().getCosts());
player.setCastSourceIdWithAlternateMana(cardToCheck.getId(), cardToCheck.getManaCost(), newCosts);
return true;

View file

@ -1,4 +1,3 @@
package mage.cards.h;
import mage.MageInt;

View file

@ -13,6 +13,7 @@ import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Zone;
import mage.counters.CounterType;
import mage.filter.common.FilterControlledPermanent;
import mage.target.common.TargetArtifactPermanent;
import mage.target.common.TargetControlledPermanent;
import mage.target.common.TargetCreaturePermanent;
@ -28,7 +29,7 @@ public final class PowerConduit extends CardImpl {
// {tap}, Remove a counter from a permanent you control: Choose one - Put a charge counter on target artifact; or put a +1/+1 counter on target creature.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.CHARGE.createInstance()), new TapSourceCost());
ability.addCost(new RemoveCounterCost(new TargetControlledPermanent()));
ability.addCost(new RemoveCounterCost(new TargetControlledPermanent(1, 1, new FilterControlledPermanent(), true)));
ability.addTarget(new TargetArtifactPermanent());
Mode mode = new Mode(new AddCountersTargetEffect(CounterType.P1P1.createInstance()));
mode.addTarget(new TargetCreaturePermanent());

View file

@ -50,15 +50,15 @@ public final class SanctuaryWarden extends CardImpl {
// Sanctuary Warden enters the battlefield with two shield counters on it.
this.addAbility(new EntersBattlefieldAbility(
new AddCountersSourceEffect(CounterType.SHIELD.createInstance(2)),
"with two shield counters on it. <i>(If it would be dealt damage " +
"or destroyed, remove a shield counter from it instead.)</i>"
"with two shield counters on it. <i>(If it would be dealt damage "
+ "or destroyed, remove a shield counter from it instead.)</i>"
));
// Whenever Sanctuary Warden enters the battlefield or attacks, you may remove a counter from a creature or planeswalker you control. If you do, draw a card and create a 1/1 green and white Citizen creature token.
this.addAbility(new EntersBattlefieldOrAttacksSourceTriggeredAbility(
new DoIfCostPaid(
new DrawCardSourceControllerEffect(1),
new RemoveCounterCost(new TargetControlledPermanent(filter))
new RemoveCounterCost(new TargetControlledPermanent(1, 1, filter, true))
).addEffect(new CreateTokenEffect(new CitizenGreenWhiteToken()).concatBy("and"))
));
}

View file

@ -46,7 +46,7 @@ public final class SoulDiviner extends CardImpl {
Ability ability = new SimpleActivatedAbility(
new DrawCardSourceControllerEffect(1), new TapSourceCost()
);
ability.addCost(new RemoveCounterCost(new TargetPermanent(filter)));
ability.addCost(new RemoveCounterCost(new TargetPermanent(1, 1, filter, true)));
this.addAbility(ability);
}