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