mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Input_Untap.java - rename method to something more descriptive and remove old code
This commit is contained in:
@@ -36,41 +36,11 @@ public class Input_Untap extends Input {
|
|||||||
AllZone.Phase.setNeedToNextPhase(true);
|
AllZone.Phase.setNeedToNextPhase(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isMarbleTitanInPlay() //or Meekstone
|
private boolean untapLessThanPower3()
|
||||||
{
|
{
|
||||||
/*
|
//checks for Marble Titan or Meekstone
|
||||||
CardList all = new CardList();
|
|
||||||
all.addAll(AllZone.Human_Play.getCards());
|
|
||||||
all.addAll(AllZone.Computer_Play.getCards());
|
|
||||||
|
|
||||||
all = all.filter(new CardListFilter() {
|
|
||||||
public boolean addCard(Card c) {
|
|
||||||
return c.getName().equals("Meekstone") || c.getName().equals("Marble Titan");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return all.size() > 0;
|
|
||||||
*/
|
|
||||||
|
|
||||||
return AllZoneUtil.isCardInPlay("Marble Titan") || AllZoneUtil.isCardInPlay("Meekstone");
|
return AllZoneUtil.isCardInPlay("Marble Titan") || AllZoneUtil.isCardInPlay("Meekstone");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
private boolean isStasisInPlay() {
|
|
||||||
CardList all = new CardList();
|
|
||||||
all.addAll(AllZone.Human_Play.getCards());
|
|
||||||
all.addAll(AllZone.Computer_Play.getCards());
|
|
||||||
|
|
||||||
all = all.filter(new CardListFilter() {
|
|
||||||
public boolean addCard(Card c) {
|
|
||||||
return c.getName().equals("Stasis");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return all.size() > 0;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
private void doUntap()
|
private void doUntap()
|
||||||
{
|
{
|
||||||
@@ -80,13 +50,13 @@ public class Input_Untap extends Input {
|
|||||||
{
|
{
|
||||||
public boolean addCard(Card c)
|
public boolean addCard(Card c)
|
||||||
{
|
{
|
||||||
if( isMarbleTitanInPlay() && isWinterOrbInEffect() ) {
|
if( untapLessThanPower3() && isWinterOrbInEffect() ) {
|
||||||
return !c.isLand() && c.getNetAttack() < 3;
|
return !c.isLand() && c.getNetAttack() < 3;
|
||||||
}
|
}
|
||||||
else if( isWinterOrbInEffect() ) {
|
else if( isWinterOrbInEffect() ) {
|
||||||
return !c.isLand();
|
return !c.isLand();
|
||||||
}
|
}
|
||||||
else if (isMarbleTitanInPlay()) {
|
else if (untapLessThanPower3()) {
|
||||||
return c.getNetAttack() < 3;
|
return c.getNetAttack() < 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,17 +137,7 @@ public class Input_Untap extends Input {
|
|||||||
}
|
}
|
||||||
}//end doUntap
|
}//end doUntap
|
||||||
|
|
||||||
|
|
||||||
private boolean isWinterOrbInEffect() {
|
private boolean isWinterOrbInEffect() {
|
||||||
/*
|
|
||||||
CardList all = new CardList();
|
|
||||||
all.addAll(AllZone.Human_Play.getCards());
|
|
||||||
all.addAll(AllZone.Computer_Play.getCards());
|
|
||||||
all = all.filter(new CardListFilter() {
|
|
||||||
public boolean addCard(Card c) {
|
|
||||||
return c.getName().equals("Winter Orb");
|
|
||||||
}
|
|
||||||
}); */
|
|
||||||
|
|
||||||
CardList all = AllZoneUtil.getCardsInPlay("Winter Orb");
|
CardList all = AllZoneUtil.getCardsInPlay("Winter Orb");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user