* Added new game mode: Oathbreaker (#5678);

This commit is contained in:
Oleg Agafonov 2019-05-27 16:17:15 +04:00
parent adb666587b
commit 07cf5201ba
17 changed files with 1100 additions and 236 deletions

View file

@ -2871,7 +2871,7 @@ public abstract class GameImpl implements Game, Serializable {
// as commander (only commander games, look at init code in GameCommanderImpl)
if (this instanceof GameCommanderImpl) {
for (Card card : command) {
player.addCommanderId(card.getId());
((GameCommanderImpl) this).addCommander(card, player);
// no needs in initCommander call -- it's uses on game startup (init)
}
} else if (!command.isEmpty()) {