Cards compatibility with oathbreaker format;

This commit is contained in:
Oleg Agafonov 2019-05-27 17:21:17 +04:00
parent e1259d0dd6
commit 913ee65f36
22 changed files with 99 additions and 46 deletions

View file

@ -59,7 +59,7 @@ public abstract class GameCommanderImpl extends GameImpl {
}
// init commanders
for (UUID commanderId : player.getCommandersIds()) {
for (UUID commanderId : this.getCommandersIds(player)) {
Card commander = this.getCard(commanderId);
if (commander != null) {
initCommander(commander, player);
@ -183,7 +183,7 @@ public abstract class GameCommanderImpl extends GameImpl {
@Override
protected boolean checkStateBasedActions() {
for (Player player : getPlayers().values()) {
for (UUID commanderId : player.getCommandersIds()) {
for (UUID commanderId : this.getCommandersIds(player)) {
CommanderInfoWatcher damageWatcher = getState().getWatcher(CommanderInfoWatcher.class, commanderId);
if (damageWatcher == null) {
continue;