We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f6c631 commit c004ffbCopy full SHA for c004ffb
1 file changed
engine/src/main/battlecode/world/RobotControllerImpl.java
@@ -1146,7 +1146,9 @@ public void becomeRatKing() throws GameActionException {
1146
this.gameWorld.getTeamInfo().addCheese(this.getTeam(), -GameConstants.RAT_KING_UPGRADE_CHEESE_COST);
1147
health = Math.min(health, UnitType.RAT_KING.health);
1148
1149
- robot.becomeRatKing(health);
+ this.gameWorld.getTeamInfo().addCheese(this.getTeam(), robot.getCheese());
1150
+ this.robot.addCheese(-this.robot.getCheese());
1151
+ this.robot.becomeRatKing(health);
1152
1153
1154
for (Direction d : Direction.allDirections()) {
0 commit comments