We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f1965d commit 6552b2eCopy full SHA for 6552b2e
1 file changed
engine/src/main/battlecode/world/InternalRobot.java
@@ -1129,14 +1129,11 @@ public void processEndOfTurn() {
1129
}
1130
1131
// cat algo
1132
-
1133
- if (this.type == UnitType.CAT) {
1134
- if (this.sleepTimeRemaining > 0) {
1135
- this.gameWorld.getMatchMaker().addCatFeedAction(this.getID());
1136
- this.sleepTimeRemaining -= 1;
1137
- return;
1138
- }
1139
+ if (this.type == UnitType.CAT && this.sleepTimeRemaining > 0){
+ this.gameWorld.getMatchMaker().addCatFeedAction(this.getID());
+ this.sleepTimeRemaining -= 1;
+ }
+ else if (this.type == UnitType.CAT) {
1140
int[] pounceTraj = null;
1141
1142
switch (this.catState) {
0 commit comments