diff --git a/res/cardsfolder/feral_lightning.txt b/res/cardsfolder/feral_lightning.txt index 655bd637aa9..3e4cc155492 100644 --- a/res/cardsfolder/feral_lightning.txt +++ b/res/cardsfolder/feral_lightning.txt @@ -2,7 +2,7 @@ Name:Feral Lightning ManaCost:3 R R R Types:Sorcery Text:Put three 3/1 red Elemental creature tokens with haste into play. Remove them from the game at end of turn. -K:spMakeToken<>3<>Elemental<>R 3 1 Elemental<>Controller<>R<>Creature;Elemental<>3<>1<>Haste;At the beginning of the end step, sacrifice CARDNAME. +K:spMakeToken<>3<>Elemental<>R 3 1 Elemental<>Controller<>R<>Creature;Elemental<>3<>1<>Haste;At the beginning of the end step, exile CARDNAME. SVar:PlayMain1:TRUE SVar:Rarity:Uncommon SVar:Picture:http://resources.wizards.com/magic/cards/sok/en-us/card84373.jpg diff --git a/src/forge/EndOfTurn.java b/src/forge/EndOfTurn.java index 29b8c8e8693..7427b2314f5 100644 --- a/src/forge/EndOfTurn.java +++ b/src/forge/EndOfTurn.java @@ -59,20 +59,32 @@ public class EndOfTurn implements java.io.Serializable System.out.println("number of cards in compy removed zone: " + c.size()); System.out.println("number of cards in human removed zone: " + h.size()); */ - for(Card c : all) - if(!c.isFaceDown() - && c.getKeyword().contains("At the beginning of the end step, sacrifice CARDNAME.")) - { - final Card card = c; - final SpellAbility sac = new Ability(card, "0") { - @Override - public void resolve() { - if(AllZone.GameAction.isCardInPlay(card)) AllZone.GameAction.sacrifice(card); - } - }; - sac.setStackDescription("Sacrifice " + card); - AllZone.Stack.add(sac); - } + for(Card c : all) { + if(!c.isFaceDown() + && c.getKeyword().contains("At the beginning of the end step, sacrifice CARDNAME.")) + { + final Card card = c; + final SpellAbility sac = new Ability(card, "0") { + @Override + public void resolve() { + if(AllZone.GameAction.isCardInPlay(card)) AllZone.GameAction.sacrifice(card); + } + }; + sac.setStackDescription("Sacrifice " + card); + AllZone.Stack.add(sac); + } + if(!c.isFaceDown() && c.getKeyword().contains("At the beginning of the end step, exile CARDNAME.")) { + final Card card = c; + final SpellAbility exile = new Ability(card, "0") { + @Override + public void resolve() { + if(AllZone.GameAction.isCardInPlay(card)) AllZone.GameAction.exile(card); + } + }; + exile.setStackDescription("Exile " + card); + AllZone.Stack.add(exile); + } + } execute(at); }//executeAt()