Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Salimi committed May 6, 2019
2 parents cbc79de + 5b723d4 commit d34c57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/models/game/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private void playCurrentTurn() throws LogicException {
actions.calculateAvailableAttacks(this);
}
actions.calculateAvailableInsets(this);
while (actions.getHandInserts().size() > 0 && actions.getCollectibleInserts().size() > 0) {
while (actions.getHandInserts().size() > 0 || actions.getCollectibleInserts().size() > 0) {
if (new Random().nextInt(2) == 1) {
Insert insert = actions.getHandInserts().get(new Random().nextInt(actions.getHandInserts().size()));
insert("AI", insert.getCard().getCardId(), new Position(new Random().nextInt(5), new Random().nextInt(9)));
Expand Down

0 comments on commit d34c57e

Please sign in to comment.