Fixed #180 : Paying additional cost of Mana Leak or Spell Rupture isn't handled correct

This commit is contained in:
magenoxx 2013-04-01 14:24:56 +04:00
parent 5f17804e93
commit 143f0f76e7
3 changed files with 13 additions and 17 deletions

View file

@ -62,6 +62,7 @@ public class PlayerView implements Serializable {
private UserDataView userDataView;
private List<EmblemView> emblemList = new ArrayList<EmblemView>();
private List<UUID> attachments = new ArrayList<UUID>();
private int statesSavedSize;
public PlayerView(Player player, GameState state, Game game) {
this.playerId = player.getId();
@ -105,6 +106,8 @@ public class PlayerView implements Serializable {
if (player.getAttachments() != null) {
attachments.addAll(player.getAttachments());
}
this.statesSavedSize = player.getStoredBookmark();
}
private boolean showInBattlefield(Permanent permanent, GameState state) {
@ -184,4 +187,8 @@ public class PlayerView implements Serializable {
public boolean hasAttachments() {
return attachments != null && attachments.size() > 0;
}
public int getStatesSavedSize() {
return statesSavedSize;
}
}