PlayerControllerHuman: fix trample assign to defender, fix trample counter

This commit is contained in:
Hans Mackowiak
2020-06-06 09:10:05 +02:00
parent f60fdf3fa5
commit 653d214027
4 changed files with 6 additions and 3 deletions

View File

@@ -296,6 +296,9 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
for (final Entry<CardView, Integer> e : result.entrySet()) {
if (gameCacheBlockers.containsKey(e.getKey())) {
map.put(gameCacheBlockers.get(e.getKey()), e.getValue());
} else if (e.getKey() == null || e.getKey().getId() == -1) {
// null key or key with -1 means defender
map.put(null, e.getValue());
}
}
} else {