We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 514bd61 + 3cc3173 commit 8fbe69aCopy full SHA for 8fbe69a
engine/src/main/battlecode/world/InternalRobot.java
@@ -380,7 +380,9 @@ public void transform() {
380
public void mutate() {
381
if (!canMutate()) return;
382
this.level++;
383
- this.health += this.type.getMaxHealth(this.level) - this.type.getMaxHealth(this.level - 1);
+ int healthIncrease = this.type.getMaxHealth(this.level) - this.type.getMaxHealth(this.level - 1);
384
+ this.gameWorld.getMatchMaker().addAction(getID(), Action.CHANGE_HEALTH, healthIncrease);
385
+ this.health += healthIncrease;
386
}
387
388
/**
0 commit comments