We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9456f82 commit 6b43babCopy full SHA for 6b43bab
1 file changed
engine/src/main/battlecode/world/RobotControllerImpl.java
@@ -556,8 +556,7 @@ public RobotInfo senseRobotAtLocation(MapLocation loc) throws GameActionExceptio
556
@Override
557
public boolean canSenseRobot(int id) {
558
InternalRobot sensedRobot = getRobotByID(id);
559
- Boolean isFlying = sensedRobot.isBeingThrown();
560
- return sensedRobot != null && !isFlying && canSenseLocation(sensedRobot.getLocation());
+ return sensedRobot != null && !sensedRobot.isBeingThrown() && canSenseLocation(sensedRobot.getLocation());
561
}
562
563
0 commit comments