Fixed Issue#70: Game handles to lose by draw from empty library not correct

This commit is contained in:
magenoxx 2012-09-07 23:24:50 +04:00
parent c671f9e9ac
commit df58763fe4
2 changed files with 4 additions and 0 deletions

View file

@ -221,4 +221,7 @@ public class Library implements Serializable {
return null;
}
public void reset() {
this.emptyDraw = false;
}
}

View file

@ -197,6 +197,7 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
this.hand.clear();
this.graveyard.clear();
}
this.library.reset();
this.abilities.clear();
this.counters.clear();
this.wins = false;