mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +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()) )
|
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());
|
||||||
|
|||||||
@@ -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 **************************
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user