public static void endTurn() { // If two_player, only switch turns if player1 isActive if (!Constants.SINGLE_PLAYER && player1.isActive) { protocols.sendEndTurn(player1.playerID); //Player's endturn refreshes the player's minions so they can attack next turn. player1.endTurn(); // Not sure if this needs to be here player2.endTurn(); player2.isActive = true; player2.addMana(); if (player2.hand.Count != 5) { player2.dealDummyCard(1); } } if (Constants.SINGLE_PLAYER) { //Player's endturn refreshes the player's minions so they can attack next turn. player1.endTurn(); // Not sure if this needs to be here player2.endTurn(); //PLAYER 1'S TURN ENDING if (player1.isActive) { //the isActive variables switching for next turn player1.isActive = false; player2.isActive = true; //Sets the current player to player 2 and deals a card GameManager.curPlayer = player2; player2.startTurn(); //PLAYER 2'S TURN ENDING } else { //Player 1 is active, Player 2 unactive now player1.isActive = true; player2.isActive = false; //Deal player 1 a card and set as current player GameManager.curPlayer = player1; player1.startTurn(); } } // End if SinglePlayer }