mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
*Removed remnants of my first attempt at Epic.
This commit is contained in:
@@ -1160,8 +1160,6 @@ public class GameAction {
|
|||||||
canShowWinLose = true;
|
canShowWinLose = true;
|
||||||
forge.card.trigger.Trigger.resetIDs();
|
forge.card.trigger.Trigger.resetIDs();
|
||||||
AllZone.getTriggerHandler().clearTriggerSettings();
|
AllZone.getTriggerHandler().clearTriggerSettings();
|
||||||
AllZone.getHumanPlayer().setEpicSpell(null);
|
|
||||||
AllZone.getComputerPlayer().setEpicSpell(null);
|
|
||||||
|
|
||||||
{ //re-number cards just so their unique numbers are low, just for user friendliness
|
{ //re-number cards just so their unique numbers are low, just for user friendliness
|
||||||
CardFactoryInterface c = AllZone.getCardFactory();
|
CardFactoryInterface c = AllZone.getCardFactory();
|
||||||
|
|||||||
@@ -50,8 +50,6 @@ public abstract class Player extends GameEntity {
|
|||||||
Map<Constant.Zone, PlayerZone> zones = new EnumMap<Constant.Zone, PlayerZone>(Constant.Zone.class);
|
Map<Constant.Zone, PlayerZone> zones = new EnumMap<Constant.Zone, PlayerZone>(Constant.Zone.class);
|
||||||
public final static List<Zone> ALL_ZONES = Collections.unmodifiableList(Arrays.asList(Zone.Battlefield, Zone.Library, Zone.Graveyard, Zone.Hand, Zone.Exile, Zone.Command));
|
public final static List<Zone> ALL_ZONES = Collections.unmodifiableList(Arrays.asList(Zone.Battlefield, Zone.Library, Zone.Graveyard, Zone.Hand, Zone.Exile, Zone.Command));
|
||||||
|
|
||||||
private SpellAbility epicSpell = null;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Constructor for Player.</p>
|
* <p>Constructor for Player.</p>
|
||||||
*
|
*
|
||||||
@@ -1916,18 +1914,4 @@ public abstract class Player extends GameEntity {
|
|||||||
return p1.getName().equals(getName());
|
return p1.getName().equals(getName());
|
||||||
} else return false;
|
} else return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the epicSpell
|
|
||||||
*/
|
|
||||||
public SpellAbility getEpicSpell() {
|
|
||||||
return epicSpell;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param epicSpell0 the epicSpell to set
|
|
||||||
*/
|
|
||||||
public void setEpicSpell(SpellAbility epicSpell0) {
|
|
||||||
this.epicSpell = epicSpell0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4990,7 +4990,6 @@ public class CardFactoryUtil {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void resolve() {
|
public void resolve() {
|
||||||
card.getController().setEpicSpell(origSA);
|
|
||||||
|
|
||||||
//Create Epic emblem
|
//Create Epic emblem
|
||||||
Card eff = new Card();
|
Card eff = new Card();
|
||||||
|
|||||||
@@ -57,10 +57,6 @@ abstract public class Spell extends SpellAbility implements java.io.Serializable
|
|||||||
public boolean canPlay() {
|
public boolean canPlay() {
|
||||||
if (AllZone.getStack().isSplitSecondOnStack()) return false;
|
if (AllZone.getStack().isSplitSecondOnStack()) return false;
|
||||||
|
|
||||||
if(getSourceCard().getController().getEpicSpell() != null) {
|
|
||||||
return false; //Player has cast an Epic spell and can't cast more this game.
|
|
||||||
}
|
|
||||||
|
|
||||||
Card card = getSourceCard();
|
Card card = getSourceCard();
|
||||||
|
|
||||||
Player activator = getActivatingPlayer();
|
Player activator = getActivatingPlayer();
|
||||||
|
|||||||
Reference in New Issue
Block a user