- Added North Star

This commit is contained in:
swordshine
2014-08-06 05:59:40 +00:00
parent b0d2244633
commit cc90fc61c6
8 changed files with 55 additions and 13 deletions

View File

@@ -733,6 +733,7 @@ public class PhaseHandler implements java.io.Serializable, IGameStateObject {
p.setLifeLostThisTurn(0);
p.setLifeGainedThisTurn(0);
p.setLibrarySearched(0);
p.setNumManaConversion(0);
p.removeKeyword("At the beginning of this turn's end step, you lose the game.");
p.removeKeyword("Skip the untap step of this turn.");

View File

@@ -184,6 +184,8 @@ public class Player extends GameEntity implements Comparable<Player> {
private List<Card> lostOwnership = new ArrayList<Card>();
private List<Card> gainedOwnership = new ArrayList<Card>();
private int numManaConversion = 0;
public final PlayerOutcome getOutcome() {
return stats.getOutcome();
}
@@ -2332,6 +2334,23 @@ public class Player extends GameEntity implements Comparable<Player> {
this.numLibrarySearchedOwn++;
}
public final void setNumManaConversion(final int l) {
this.numManaConversion = l;
}
public final boolean hasManaConversion() {
return this.numManaConversion < this.getAmountOfKeyword("You may spend mana as though"
+ " it were mana of any color to cast a spell this turn.");
}
public final void incNumManaConversion() {
this.numManaConversion++;
}
public final void decNumManaConversion() {
this.numManaConversion--;
}
/*
* (non-Javadoc)
*