- Fixed Pongify and Crib Swap.

- Got rid of the "Opponent has:{creature}" console output (should improve performance slightly).
- Fixed Avenger of Zendikar.
This commit is contained in:
jendave
2011-08-06 03:22:58 +00:00
parent 4d59c8f491
commit 9fc6ca7027
4 changed files with 5 additions and 9 deletions

View File

@@ -4681,7 +4681,7 @@ public class CardFactory implements NewConstants {
{ {
if(AllZone.GameAction.isCardInPlay(getTargetCard()) && CardFactoryUtil.canTarget(card,getTargetCard()) ) if(AllZone.GameAction.isCardInPlay(getTargetCard()) && CardFactoryUtil.canTarget(card,getTargetCard()) )
{ {
CardFactoryUtil.makeToken("Ape", "G 3 3 Ape", AllZone.GameAction.getOpponent(card.getController()), "G", CardFactoryUtil.makeToken("Ape", "G 3 3 Ape", AllZone.GameAction.getOpponent(getTargetCard().getController()), "G",
new String[] {"Creature", "Ape"}, 3, 3, new String[] {""} ); new String[] {"Creature", "Ape"}, 3, 3, new String[] {""} );
AllZone.GameAction.destroyNoRegeneration(getTargetCard()); AllZone.GameAction.destroyNoRegeneration(getTargetCard());
} }
@@ -6045,7 +6045,7 @@ public class CardFactory implements NewConstants {
{ {
if(AllZone.GameAction.isCardInPlay(getTargetCard()) && CardFactoryUtil.canTarget(card, getTargetCard()) ) if(AllZone.GameAction.isCardInPlay(getTargetCard()) && CardFactoryUtil.canTarget(card, getTargetCard()) )
{ {
CardFactoryUtil.makeToken("Shapeshifter", "C 1 1 Shapeshifter", AllZone.GameAction.getOpponent(card.getController()), "", CardFactoryUtil.makeToken("Shapeshifter", "C 1 1 Shapeshifter", AllZone.GameAction.getOpponent(getTargetCard().getController()), "",
new String[] {"Creature", "Shapeshifter"}, 1, 1, new String[] {"Changeling"} ); new String[] {"Creature", "Shapeshifter"}, 1, 1, new String[] {"Changeling"} );
//remove card from play //remove card from play
AllZone.GameAction.removeFromGame(getTargetCard()); AllZone.GameAction.removeFromGame(getTargetCard());

View File

@@ -18691,7 +18691,6 @@ public class CardFactory_Creatures {
AllZone.Stack.add(ability); AllZone.Stack.add(ability);
} }
}; };
card.clearSpellKeepManaAbility();
card.addComesIntoPlayCommand(comesIntoPlay); card.addComesIntoPlayCommand(comesIntoPlay);
}//*************** END ************ END ************************** }//*************** END ************ END **************************

View File

@@ -6349,20 +6349,17 @@ public class GameActionUtil
PlayerZone opponentZone = AllZone.getZone(Constant.Zone.Play, opponent); PlayerZone opponentZone = AllZone.getZone(Constant.Zone.Play, opponent);
CardList opponentList = new CardList(opponentZone.getCards()); CardList opponentList = new CardList(opponentZone.getCards());
opponentList = opponentList.getType("Creature"); opponentList = opponentList.getType("Creature");
//System.out.println("opponent has " + opponentList.size() + " creatures");
/*
for (int i = 0; i < opponentList.size(); i++) for (int i = 0; i < opponentList.size(); i++)
{ {
Card tmpCard = opponentList.get(i); Card tmpCard = opponentList.get(i);
System.out.println("opponent has: " + tmpCard); System.out.println("opponent has: " + tmpCard);
} }
*/
if (3 > opponentList.size()) if (3 > opponentList.size())
{
// they do not have 3 or more creatures in play, so Defense of the
// Heart would not be able to be sacrificed.
return; return;
}
// opponent has more than 3 creatures in play, so check if Defense of // opponent has more than 3 creatures in play, so check if Defense of
// the Heart is in play and sacrifice it for the effect. // the Heart is in play and sacrifice it for the effect.