mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Removed the unnecessary variable "flashback" from the card class.
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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 **************************
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user