@@ -621,7 +621,7 @@ public void bite(MapLocation loc, int cheeseConsumed) {
621621 targetRobot .addHealth (-damage );
622622
623623 if (targetRobot .getType () != UnitType .CAT ) {
624- this .gameWorld .isCooperation = false ;
624+ this .gameWorld .backstab ( this . team ) ;
625625 }
626626 }
627627 }
@@ -646,7 +646,7 @@ public void grabRobot(MapLocation loc) {
646646 this .gameWorld .getMatchMaker ().addRatNapAction (this .robotBeingCarried .getID ());
647647
648648 if (this .robotBeingCarried .getTeam () != this .getTeam ()) {
649- this .gameWorld .isCooperation = false ;
649+ this .gameWorld .backstab ( this . getTeam ()) ;
650650 }
651651 }
652652
@@ -702,13 +702,13 @@ private void getGrabbed(InternalRobot grabber) {
702702 public void throwRobot () {
703703 this .gameWorld .getMatchMaker ().endTurn (this .ID , this .health , this .cheeseAmount , this .movementCooldownTurns ,
704704 this .actionCooldownTurns , this .turningCooldownTurns , this .bytecodesUsed , this .location , this .dir ,
705- this .gameWorld .isCooperation );
705+ this .gameWorld .isCooperation () );
706706 this .robotBeingCarried .getThrown (this .dir );
707707 this .gameWorld .getMatchMaker ().endTurn (this .robotBeingCarried .ID , this .robotBeingCarried .health ,
708708 this .robotBeingCarried .cheeseAmount , this .robotBeingCarried .movementCooldownTurns ,
709709 this .robotBeingCarried .actionCooldownTurns , this .robotBeingCarried .turningCooldownTurns ,
710710 this .robotBeingCarried .bytecodesUsed , this .robotBeingCarried .location , this .robotBeingCarried .dir ,
711- this .gameWorld .isCooperation );
711+ this .gameWorld .isCooperation () );
712712 this .gameWorld .addHasTraveledRobot (this .robotBeingCarried .getID ());
713713 this .gameWorld .getMatchMaker ().addThrowAction (this .robotBeingCarried .getID (),
714714 this .getLocation ().add (this .dir ));
@@ -1401,13 +1401,13 @@ public void processEndOfTurn() {
14011401
14021402 this .gameWorld .getMatchMaker ().endTurn (this .ID , this .health , this .cheeseAmount , this .movementCooldownTurns ,
14031403 this .actionCooldownTurns , this .turningCooldownTurns , this .bytecodesUsed , this .location , this .dir ,
1404- this .gameWorld .isCooperation );
1404+ this .gameWorld .isCooperation () );
14051405 if (this .isCarryingRobot () && this .robotBeingCarried .getHealth () > 0 )
14061406 this .gameWorld .getMatchMaker ().endTurn (this .robotBeingCarried .ID , this .robotBeingCarried .health ,
14071407 this .robotBeingCarried .cheeseAmount , this .robotBeingCarried .movementCooldownTurns ,
14081408 this .robotBeingCarried .actionCooldownTurns , this .robotBeingCarried .turningCooldownTurns ,
14091409 this .robotBeingCarried .bytecodesUsed , this .location , this .robotBeingCarried .dir ,
1410- this .gameWorld .isCooperation );
1410+ this .gameWorld .isCooperation () );
14111411 this .roundsAlive ++;
14121412 }
14131413
0 commit comments