Skip to content

Commit 7191f38

Browse files
committed
update cansenserobot
1 parent bb97539 commit 7191f38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/src/main/battlecode/world/RobotControllerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ public RobotInfo senseRobotAtLocation(MapLocation loc) throws GameActionExceptio
557557
public boolean canSenseRobot(int id) {
558558
InternalRobot sensedRobot = getRobotByID(id);
559559
Boolean isFlying = sensedRobot.isBeingThrown();
560-
return sensedRobot != null && isFlying && canSenseLocation(sensedRobot.getLocation());
560+
return sensedRobot != null && !isFlying && canSenseLocation(sensedRobot.getLocation());
561561
}
562562

563563
@Override

0 commit comments

Comments
 (0)