mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Fixed Miraculous Recovery text
This commit is contained in:
parent
d9609e55f2
commit
8aecd1ad4c
1 changed files with 6 additions and 8 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.cards.m;
|
package mage.cards.m;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -10,10 +9,9 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Outcome;
|
import mage.constants.Outcome;
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
import mage.filter.common.FilterCreatureCard;
|
import mage.filter.StaticFilters;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.target.Target;
|
|
||||||
import mage.target.common.TargetCardInYourGraveyard;
|
import mage.target.common.TargetCardInYourGraveyard;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,13 +21,13 @@ import mage.target.common.TargetCardInYourGraveyard;
|
||||||
public final class MiraculousRecovery extends CardImpl {
|
public final class MiraculousRecovery extends CardImpl {
|
||||||
|
|
||||||
public MiraculousRecovery(UUID ownerId, CardSetInfo setInfo) {
|
public MiraculousRecovery(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{4}{W}");
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{4}{W}");
|
||||||
|
|
||||||
|
|
||||||
// Return target creature card from your graveyard to the battlefield. Put a +1/+1 counter on it.
|
// Return target creature card from your graveyard to the battlefield. Put a +1/+1 counter on it.
|
||||||
this.getSpellAbility().addEffect(new ReturnFromGraveyardToBattlefieldTargetEffect());
|
this.getSpellAbility().addEffect(new ReturnFromGraveyardToBattlefieldTargetEffect());
|
||||||
Target target = new TargetCardInYourGraveyard(new FilterCreatureCard());
|
this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(
|
||||||
this.getSpellAbility().addTarget(target);
|
StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD
|
||||||
|
));
|
||||||
this.getSpellAbility().addEffect(new MiraculousRecoveryEffect());
|
this.getSpellAbility().addEffect(new MiraculousRecoveryEffect());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +62,7 @@ class MiraculousRecoveryEffect extends OneShotEffect {
|
||||||
// targetPointer can't be used because target moved from graveyard to battlefield
|
// targetPointer can't be used because target moved from graveyard to battlefield
|
||||||
Permanent permanent = game.getPermanent(source.getFirstTarget());
|
Permanent permanent = game.getPermanent(source.getFirstTarget());
|
||||||
if (permanent != null) {
|
if (permanent != null) {
|
||||||
permanent.addCounters(CounterType.P1P1.createInstance(), source, game);
|
permanent.addCounters(CounterType.P1P1.createInstance(), source, game);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue