mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
Add a line to remove from grave to avoid duplicates
This commit is contained in:
parent
d765b2b108
commit
ae329fd81f
1 changed files with 9 additions and 4 deletions
|
|
@ -37,11 +37,15 @@ import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.abilities.effects.common.cost.CostModificationEffectImpl;
|
import mage.abilities.effects.common.cost.CostModificationEffectImpl;
|
||||||
import mage.abilities.keyword.TransformAbility;
|
import mage.abilities.keyword.TransformAbility;
|
||||||
|
import mage.cards.i.InfectiousCurse;
|
||||||
import mage.cards.Card;
|
import mage.cards.Card;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.cards.i.InfectiousCurse;
|
import mage.constants.CardType;
|
||||||
import mage.constants.*;
|
import mage.constants.CostModificationType;
|
||||||
|
import mage.constants.Duration;
|
||||||
|
import mage.constants.Outcome;
|
||||||
|
import mage.constants.Zone;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
|
@ -56,8 +60,8 @@ public class AccursedWitch extends CardImpl {
|
||||||
|
|
||||||
public AccursedWitch(UUID ownerId, CardSetInfo setInfo) {
|
public AccursedWitch(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}");
|
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}");
|
||||||
this.subtype.add(SubType.HUMAN);
|
this.subtype.add("Human");
|
||||||
this.subtype.add(SubType.SHAMAN);
|
this.subtype.add("Shaman");
|
||||||
this.power = new MageInt(4);
|
this.power = new MageInt(4);
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
|
|
@ -106,6 +110,7 @@ class AccursedWitchReturnTransformedEffect extends OneShotEffect {
|
||||||
//note: should check for null after game.getCard
|
//note: should check for null after game.getCard
|
||||||
Card card = game.getCard(source.getSourceId());
|
Card card = game.getCard(source.getSourceId());
|
||||||
if (card != null) {
|
if (card != null) {
|
||||||
|
card.removeFromZone(game, Zone.GRAVEYARD, source.getSourceId());
|
||||||
card.putOntoBattlefield(game, Zone.BATTLEFIELD, source.getSourceId(), source.getControllerId(), false);
|
card.putOntoBattlefield(game, Zone.BATTLEFIELD, source.getSourceId(), source.getControllerId(), false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue