AI: fixed that computer can't play commanders (#7955);

This commit is contained in:
Oleg Agafonov 2021-07-01 18:21:15 +04:00
parent d0ee17d661
commit 62d6675be6
4 changed files with 40 additions and 8 deletions

View file

@ -104,9 +104,10 @@ public class Commander implements CommandObject {
}
private Commander(final Commander commander) {
this.sourceObject = commander.sourceObject;
this.sourceObject = commander.sourceObject.copy();
this.copy = commander.copy;
this.copyFrom = (commander.copyFrom != null ? commander.copyFrom.copy() : null);
this.abilities.addAll(commander.abilities.copy());
}
@Override