mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- 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:
@@ -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());
|
||||
|
||||
@@ -18691,7 +18691,6 @@ public class CardFactory_Creatures {
|
||||
AllZone.Stack.add(ability);
|
||||
}
|
||||
};
|
||||
card.clearSpellKeepManaAbility();
|
||||
card.addComesIntoPlayCommand(comesIntoPlay);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user