diff --git a/src/forge/card/cardFactory/CardFactory_Creatures.java b/src/forge/card/cardFactory/CardFactory_Creatures.java index ca1dfd7f6fa..4e743c57db7 100644 --- a/src/forge/card/cardFactory/CardFactory_Creatures.java +++ b/src/forge/card/cardFactory/CardFactory_Creatures.java @@ -29,7 +29,6 @@ import forge.GameActionUtil; import forge.MyRandom; import forge.Player; import forge.PlayerZone; -import forge.PlayerZone_ComesIntoPlay; import forge.Phase; import forge.card.spellability.Ability; import forge.card.spellability.Ability_Activated; @@ -155,151 +154,7 @@ public class CardFactory_Creatures { card.addSpellAbility(spell); } //*************** END ************ END ************************** - - /* - //*************** START *********** START ************************** - else if(cardName.equals("Kiki-Jiki, Mirror Breaker")) { - final CardFactory cfact = cf; - Cost abCost = new Cost("T", cardName, true); - Target target = new Target(card,"Select target nonlegendary creature you control.", new String[] {"Creature.nonLegendary+YouCtrl"}); - final Ability_Activated ability = new Ability_Activated(card, abCost, target) { - private static final long serialVersionUID = -943706942500499644L; - - @Override - public boolean canPlayAI() { - return getCreature().size() != 0; - } - - @Override - public void chooseTargetAI() { - setTargetCard(getCreature().get(0)); - } - - CardList getCreature() { - CardList list = AllZoneUtil.getCreaturesInPlay(card.getController()); - list = list.filter(new CardListFilter() { - public boolean addCard(Card c) { - return (!c.getType().contains("Legendary")); - } - }); - CardListUtil.sortAttack(list); - return list; - }//getCreature() - - @Override - public void resolve() { - if(AllZone.GameAction.isCardInPlay(getTargetCard()) - && getTargetCard().getController().equals(card.getController()) - && CardFactoryUtil.canTarget(card, getTargetCard())) { - - int multiplier = AllZoneUtil.getDoublingSeasonMagnitude(card.getController()); - Card[] crds = new Card[multiplier]; - - for (int i=0;i()); //remove all keywords - copy.setType(new ArrayList()); //remove all types - copy.addType("Creature"); - copy.clearSpellAbility(); //disallow "morph_up" - copy.setCurSetCode(""); - copy.setImageFilename("morph.jpg"); - } - - AllZone.GameAction.moveToPlay(copy); - crds[i] = copy; - } - - - //have to do this since getTargetCard() might change - //if Kiki-Jiki somehow gets untapped again - final Card[] target = new Card[multiplier]; - for (int i=0;i 0) { List selection = GuiUtils.getChoicesOptional("Select creatures to sacrifice", creats.toArray()); @@ -5058,7 +4914,7 @@ public class CardFactory_Creatures { Player player = card.getController(); CardList list = CardFactoryUtil.AI_getHumanCreature(card, true); - if(player.equals(AllZone.HumanPlayer)) AllZone.InputControl.setInput(playerInput); + if(player.isHuman()) AllZone.InputControl.setInput(playerInput); else if(list.size() != 0) { Card target = CardFactoryUtil.AI_getBestCreature(list); ability.setTargetCard(target); @@ -5386,7 +5242,7 @@ public class CardFactory_Creatures { } }; - if(tgtSA.getActivatingPlayer().equals(AllZone.HumanPlayer)) + if(tgtSA.getActivatingPlayer().isHuman()) { GameActionUtil.payManaDuringAbilityResolve(card + "\r\n", ability.getManaCost(), Command.Blank, unpaidCommand);