Skip to content

Commit 35ee29c

Browse files
committed
fix error message
1 parent 596bb14 commit 35ee29c

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
@@ -330,7 +330,7 @@ private void assertCanPlaceTrap(MapLocation loc, TrapType trapType) throws GameA
330330
: GameConstants.BUILD_DISTANCE_SQUARED);
331331

332332
if (trapType == TrapType.CAT_TRAP && !this.gameWorld.catTrapsAllowed(this.getTeam()))
333-
throw new GameActionException(CANT_DO_THAT, "Can't place new cat traps in backstabbing mode after " + GameConstants.CAT_TRAP_ROUNDS_AFTER_BACKSTAB + " rounds!");
333+
throw new GameActionException(CANT_DO_THAT, "Can't place new cat traps in backstabbing mode unless you were backstabbed and within " + GameConstants.CAT_TRAP_ROUNDS_AFTER_BACKSTAB + " rounds!");
334334
if (!this.gameWorld.isPassable(loc))
335335
throw new GameActionException(CANT_DO_THAT, "Can't place trap on a wall or dirt!");
336336
if (this.gameWorld.getRobot(loc) != null)

0 commit comments

Comments
 (0)