Skip to content

Commit 299b741

Browse files
committed
disable backstabbing when rat attacks cat
1 parent 0876d75 commit 299b741

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

engine/src/main/battlecode/world/InternalRobot.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,8 @@ public void bite(MapLocation loc, int cheeseConsumed) {
622622
}
623623
this.gameWorld.getMatchMaker().addBiteAction(this.getID());
624624

625-
this.gameWorld.isCooperation = false;
625+
if (targetRobot.getType() != UnitType.CAT)
626+
this.gameWorld.isCooperation = false;
626627
}
627628
}
628629
}

0 commit comments

Comments
 (0)