forked from External/mage
Fixed #180 : Paying additional cost of Mana Leak or Spell Rupture isn't handled correct
This commit is contained in:
parent
5f17804e93
commit
143f0f76e7
3 changed files with 13 additions and 17 deletions
|
|
@ -74,17 +74,10 @@ public class GameView implements Serializable {
|
|||
private String priorityPlayerName = "";
|
||||
private int turn;
|
||||
private boolean special = false;
|
||||
private int statesSavedSize;
|
||||
|
||||
public GameView(GameState state, Game game) {
|
||||
for (Player player: state.getPlayers().values()) {
|
||||
players.add(new PlayerView(player, state, game));
|
||||
if (player.getStoredBookmark() > 0) {
|
||||
if (this.statesSavedSize > 0) {
|
||||
throw new IllegalStateException("This shouldn't happen");
|
||||
}
|
||||
this.statesSavedSize = player.getStoredBookmark();
|
||||
}
|
||||
}
|
||||
for (StackObject stackObject: state.getStack()) {
|
||||
if (stackObject instanceof StackAbility) {
|
||||
|
|
@ -260,8 +253,4 @@ public class GameView implements Serializable {
|
|||
public boolean getSpecial() {
|
||||
return special;
|
||||
}
|
||||
|
||||
public int getStatesSavedSize() {
|
||||
return statesSavedSize;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue