mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 05:09:16 -08:00
Removed info option from ReturnFromGraveyardToHand, info is always written to log.
This commit is contained in:
parent
fb145b2811
commit
fc56b8bc88
7 changed files with 20 additions and 51 deletions
|
|
@ -68,7 +68,7 @@ public class DawnToDusk extends CardImpl<DawnToDusk> {
|
|||
this.getSpellAbility().getModes().setMinModes(1);
|
||||
this.getSpellAbility().getModes().setMaxModes(2);
|
||||
// Return target enchantment card from your graveyard to your hand;
|
||||
this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect(true));
|
||||
this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filterCard));
|
||||
// and/or destroy target enchantment.
|
||||
Mode mode = new Mode();
|
||||
|
|
|
|||
|
|
@ -65,11 +65,11 @@ public class OdunosRiverTrawler extends CardImpl<OdunosRiverTrawler> {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Odunos River Trawler enters the battlefield, return target enchantment creature card from your graveyard to your hand.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect(true));
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect());
|
||||
ability.addTarget(new TargetCardInYourGraveyard(filter, true));
|
||||
this.addAbility(ability);
|
||||
// {W}, Sacrifice Odunos River Trawler: Return target enchantment creature card from your graveyard to your hand.
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnFromGraveyardToHandTargetEffect(true), new ManaCostsImpl("{W}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnFromGraveyardToHandTargetEffect(), new ManaCostsImpl("{W}"));
|
||||
ability.addTarget(new TargetCardInYourGraveyard(filter, true));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public class TillingTreefolk extends CardImpl<TillingTreefolk> {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// When Tilling Treefolk enters the battlefield, you may return up to two target land cards from your graveyard to your hand.
|
||||
Effect effect = new ReturnFromGraveyardToHandTargetEffect(true);
|
||||
Effect effect = new ReturnFromGraveyardToHandTargetEffect();
|
||||
effect.setText("you may return up to two target land cards from your graveyard to your hand");
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(effect, true);
|
||||
ability.addTarget(new TargetCardInYourGraveyard(0, 2, new FilterLandCard()));
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ import mage.constants.Rarity;
|
|||
import mage.constants.Zone;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.common.FilterCreatureCard;
|
||||
|
|
@ -52,7 +53,8 @@ public class MorbidPlunder extends CardImpl<MorbidPlunder> {
|
|||
|
||||
this.color.setBlack(true);
|
||||
|
||||
this.getSpellAbility().addEffect(new MorbidPlunderEffect());
|
||||
// Return up to two target creature cards from your graveyard to your hand.
|
||||
this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(0, 2, new FilterCreatureCard("creature cards from your graveyard")));
|
||||
}
|
||||
|
||||
|
|
@ -65,32 +67,3 @@ public class MorbidPlunder extends CardImpl<MorbidPlunder> {
|
|||
return new MorbidPlunder(this);
|
||||
}
|
||||
}
|
||||
|
||||
class MorbidPlunderEffect extends OneShotEffect<MorbidPlunderEffect> {
|
||||
|
||||
public MorbidPlunderEffect() {
|
||||
super(Outcome.ReturnToHand);
|
||||
staticText = "Return up to two target creature cards from your graveyard to your hand";
|
||||
}
|
||||
|
||||
public MorbidPlunderEffect(final MorbidPlunderEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MorbidPlunderEffect copy() {
|
||||
return new MorbidPlunderEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
boolean result = false;
|
||||
for (UUID target : targetPointer.getTargets(game, source)) {
|
||||
Card card = game.getCard(target);
|
||||
if (card != null) {
|
||||
result |= card.moveToZone(Zone.HAND, source.getId(), game, true);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public class Anarchist extends CardImpl<Anarchist> {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Anarchist enters the battlefield, you may return target sorcery card from your graveyard to your hand.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect(true), true);
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect(), true);
|
||||
ability.addTarget(new TargetCardInYourGraveyard(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public class PharikasMender extends CardImpl<PharikasMender> {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// When Pharika's Mender enters the battlefield, you may return target creature or enchantment card from your graveyard to your hand.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect(true));
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect());
|
||||
Target target = new TargetCardInYourGraveyard(filter);
|
||||
target.setRequired(true);
|
||||
ability.addTarget(target);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue