You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (trapType == TrapType.CAT_TRAP && !this.gameWorld.isCooperation)
333
-
thrownewGameActionException(CANT_DO_THAT, "Can't place new cat traps in backstabbing mode!");
332
+
if (trapType == TrapType.CAT_TRAP && !this.gameWorld.catTrapsAllowed(this.getTeam()))
333
+
thrownewGameActionException(CANT_DO_THAT, "Can't place new cat traps in backstabbing mode after " + GameConstants.CAT_TRAP_ROUNDS_AFTER_BACKSTAB + " rounds!");
334
334
if (!this.gameWorld.isPassable(loc))
335
335
thrownewGameActionException(CANT_DO_THAT, "Can't place trap on a wall or dirt!");
336
336
if (this.gameWorld.getRobot(loc) != null)
@@ -1203,11 +1203,14 @@ public boolean canBecomeRatKing() {
0 commit comments