- Removed the unnecessary variable "flashback" from the card class.

This commit is contained in:
Sloth
2011-11-12 08:19:45 +00:00
parent f4e401bd83
commit ae09fec11f
3 changed files with 1 additions and 27 deletions

View File

@@ -239,7 +239,6 @@ public class Card extends GameEntity implements Comparable<Card> {
private boolean bounceAtUntap = false; private boolean bounceAtUntap = false;
private boolean finishedEnteringBF = false; private boolean finishedEnteringBF = false;
private boolean flashback = false;
private boolean unearth = false; private boolean unearth = false;
private boolean unearthed; private boolean unearthed;
@@ -5758,29 +5757,6 @@ public class Card extends GameEntity implements Comparable<Card> {
return this.getName() + " (" + this.getUniqueNumber() + ")"; return this.getName() + " (" + this.getUniqueNumber() + ")";
} }
/**
* <p>
* hasFlashback.
* </p>
*
* @return a boolean.
*/
public final boolean hasFlashback() {
return flashback;
}
/**
* <p>
* Setter for the field <code>flashback</code>.
* </p>
*
* @param b
* a boolean.
*/
public final void setFlashback(final boolean b) {
flashback = b;
}
/** /**
* <p> * <p>
* hasUnearth. * hasUnearth.

View File

@@ -932,7 +932,6 @@ public class CardFactorySorceries {
+ "token on the battlefield, its controller puts a token that's a copy of " + "token on the battlefield, its controller puts a token that's a copy of "
+ "that creature onto the battlefield."); + "that creature onto the battlefield.");
card.setFlashback(true);
card.addSpellAbility(spell); card.addSpellAbility(spell);
card.addSpellAbility(CardFactoryUtil.abilityFlashback(card, "4 G G G")); card.addSpellAbility(CardFactoryUtil.abilityFlashback(card, "4 G G G"));
} // *************** END ************ END ************************** } // *************** END ************ END **************************

View File

@@ -2597,7 +2597,7 @@ public class CardFactoryUtil {
public static boolean activateFromExternalZones(final Card c, final Player player) { public static boolean activateFromExternalZones(final Card c, final Player player) {
final PlayerZone zone = AllZone.getZoneOf(c); final PlayerZone zone = AllZone.getZoneOf(c);
if (zone.is(Constant.Zone.Graveyard)) { if (zone.is(Constant.Zone.Graveyard)) {
if (c.hasFlashback() || c.hasUnearth()) { if (c.hasUnearth()) {
return true; return true;
} }
@@ -4488,7 +4488,6 @@ public class CardFactoryUtil {
final String[] k = parse.split(":"); final String[] k = parse.split(":");
card.setFlashback(true);
card.addSpellAbility(CardFactoryUtil.abilityFlashback(card, k[1])); card.addSpellAbility(CardFactoryUtil.abilityFlashback(card, k[1]));
} }
} // flashback } // flashback