forked from External/mage
Fixed miss copy code in Game object (lki, cards), removed unused code. Possible fixes:
* simulated games was able to change objects from another games (ConcurrentModificationException, related tod202278ccd, details in3a6cdd2615); * AI: fixed cards disappear in multiplayer games with computer (details in #6738);
This commit is contained in:
parent
9f882824a0
commit
1664ee01cf
39 changed files with 201 additions and 125 deletions
|
|
@ -12,12 +12,13 @@ import mage.abilities.AbilitiesImpl;
|
|||
import mage.abilities.Ability;
|
||||
import mage.counters.Counter;
|
||||
import mage.counters.Counters;
|
||||
import mage.util.Copyable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward
|
||||
*/
|
||||
public class CardState implements Serializable {
|
||||
public class CardState implements Serializable, Copyable<CardState> {
|
||||
|
||||
protected boolean faceDown;
|
||||
protected Map<String, String> info;
|
||||
|
|
@ -50,6 +51,7 @@ public class CardState implements Serializable {
|
|||
this.melded = state.melded;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CardState copy() {
|
||||
return new CardState(this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue