*Removed remnants of my first attempt at Epic.

This commit is contained in:
Hellfish
2011-10-18 15:28:50 +00:00
parent a504833663
commit 2881c020df
4 changed files with 0 additions and 23 deletions

View File

@@ -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();

View File

@@ -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;
}
} }

View File

@@ -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();

View File

@@ -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();