We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1174938 commit 97db510Copy full SHA for 97db510
1 file changed
engine/src/main/battlecode/world/RobotControllerImpl.java
@@ -829,10 +829,16 @@ public void move(Direction d) throws GameActionException {
829
// kill this rat
830
crushedRobot.addHealth(-crushedRobot.getHealth());
831
}
832
- processTrapsAtLocation(newLoc);
+ // processTrapsAtLocation(newLoc);
833
834
835
this.robot.translateLocation(d.dx, d.dy);
836
+
837
+ for (int i = 0; i < curLocs.length; i++) {
838
+ MapLocation newLoc = curLocs[i].add(d);
839
+ processTrapsAtLocation(newLoc);
840
+ }
841
842
this.robot.addMovementCooldownTurns(d);
843
844
0 commit comments