Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
taslimisina committed Mar 4, 2020
2 parents f226eaa + 30dd31e commit 4217a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/AI.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void turn(World world) {
List<Path> myPaths = myself.getPathsFromPlayer();
Path path = myPaths.get(random.nextInt(myPaths.size()));
int size = path.getCells().size();
Cell cell = path.getCells().get((size + 1) / 2);
Cell cell = path.getCells().get((size - 1) / 2);

world.castUnitSpell(unit, path, cell, receivedSpell);
}
Expand Down

0 comments on commit 4217a19

Please sign in to comment.