diff --git a/engine/src/main/battlecode/world/RobotControllerImpl.java b/engine/src/main/battlecode/world/RobotControllerImpl.java index 702080e0..caf7dc91 100644 --- a/engine/src/main/battlecode/world/RobotControllerImpl.java +++ b/engine/src/main/battlecode/world/RobotControllerImpl.java @@ -1146,7 +1146,9 @@ public void becomeRatKing() throws GameActionException { this.gameWorld.getTeamInfo().addCheese(this.getTeam(), -GameConstants.RAT_KING_UPGRADE_CHEESE_COST); health = Math.min(health, UnitType.RAT_KING.health); - robot.becomeRatKing(health); + this.gameWorld.getTeamInfo().addCheese(this.getTeam(), robot.getCheese()); + this.robot.addCheese(-this.robot.getCheese()); + this.robot.becomeRatKing(health); for (Direction d : Direction.allDirections()) {