- 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()) )
{
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[] {""} );
AllZone.GameAction.destroyNoRegeneration(getTargetCard());
}
@@ -6045,7 +6045,7 @@ public class CardFactory implements NewConstants {
{
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"} );
//remove card from play
AllZone.GameAction.removeFromGame(getTargetCard());

View File

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

View File

@@ -22,7 +22,7 @@ public class GameAction
}
@SuppressWarnings("unused") // getCurrentCard
private Card getCurrentCard(int ID)
private Card getCurrentCard(int ID)
{
CardList all = new CardList();
all.addAll(AllZone.Human_Graveyard.getCards());

View File

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