From cb5eb9e45b56d59bb18d0f444965f592d5e38ad9 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 22:41:28 +0000 Subject: [PATCH] forgot part of the Replicate changes. --- src/forge/card/cardFactory/CardFactory.java | 26 ++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/forge/card/cardFactory/CardFactory.java b/src/forge/card/cardFactory/CardFactory.java index b90ee820c15..3fb19e75a48 100644 --- a/src/forge/card/cardFactory/CardFactory.java +++ b/src/forge/card/cardFactory/CardFactory.java @@ -514,19 +514,6 @@ public class CardFactory implements NewConstants { } } - if (hasKeyword(card, "Replicate") != -1) { - int n = hasKeyword(card, "Replicate"); - if (n!= -1) { - System.out.println("Got replicate for: "+card); - String parse = card.getKeyword().get(n).toString(); - String k[] = parse.split("cate "); - - SpellAbility sa = card.getSpellAbility()[0]; - sa.setIsReplicate(true); - sa.setReplicateManaCost(k[1]); - } - } - ///////////////////////////////////////////////////////////////////////////// // NOTE: This cannot currently be converted to triggers because of this line: // card.getSpellPermanent().setLoseLifeAmount(num); @@ -3250,6 +3237,19 @@ public class CardFactory implements NewConstants { card.addSpellAbility(kickedSpell); } + if (hasKeyword(card, "Replicate") != -1) { + int n = hasKeyword(card, "Replicate"); + if (n!= -1) { + System.out.println("Got replicate for: "+card); + String parse = card.getKeyword().get(n).toString(); + String k[] = parse.split("cate "); + + SpellAbility sa = card.getSpellAbility()[0]; + sa.setIsReplicate(true); + sa.setReplicateManaCost(k[1]); + } + } + int evokeKeyword = hasKeyword(card, "Evoke"); if (evokeKeyword != -1){ final SpellAbility evokedSpell = new Spell(card) {