Skip to content

Commit 30dd31e

Browse files
committed
Fix teleport in sample code
1 parent 420d59f commit 30dd31e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Client/AI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void turn(World world) {
8181
List<Path> myPaths = myself.getPathsFromPlayer();
8282
Path path = myPaths.get(random.nextInt(myPaths.size()));
8383
int size = path.getCells().size();
84-
Cell cell = path.getCells().get((size + 1) / 2);
84+
Cell cell = path.getCells().get((size - 1) / 2);
8585

8686
world.castUnitSpell(unit, path, cell, receivedSpell);
8787
}

0 commit comments

Comments
 (0)