mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Computer will no longer draw a card when playing first.
This commit is contained in:
@@ -1669,7 +1669,7 @@ public class GameAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private boolean shouldDraw = true;
|
private boolean shouldDraw = false; // Starts false to skip first draw
|
||||||
private String lastPlayerToDraw = Constant.Player.Human;
|
private String lastPlayerToDraw = Constant.Player.Human;
|
||||||
|
|
||||||
public String getLastPlayerToDraw() {
|
public String getLastPlayerToDraw() {
|
||||||
@@ -1699,9 +1699,11 @@ public class GameAction {
|
|||||||
boolean isDrawPhase = AllZone.Phase.getPhase().equals(Constant.Phase.Draw);
|
boolean isDrawPhase = AllZone.Phase.getPhase().equals(Constant.Phase.Draw);
|
||||||
if(isDrawPhase) {
|
if(isDrawPhase) {
|
||||||
String currentPlayer = AllZone.Phase.getActivePlayer();
|
String currentPlayer = AllZone.Phase.getActivePlayer();
|
||||||
if(!currentPlayer.equals(lastPlayerToDraw)) {
|
|
||||||
|
if(!currentPlayer.equals(lastPlayerToDraw) && AllZone.Phase.getTurn() != 1) {
|
||||||
shouldDraw = true;
|
shouldDraw = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
lastPlayerToDraw = currentPlayer;
|
lastPlayerToDraw = currentPlayer;
|
||||||
|
|
||||||
if(!shouldDraw) {
|
if(!shouldDraw) {
|
||||||
@@ -1917,7 +1919,7 @@ public class GameAction {
|
|||||||
Constant.Quest.fantasyQuest[0] = true;
|
Constant.Quest.fantasyQuest[0] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean Start_Cut = true;
|
boolean Start_Cut = false;
|
||||||
public void newGame(Deck humanDeck, Deck computerDeck) {
|
public void newGame(Deck humanDeck, Deck computerDeck) {
|
||||||
// AllZone.Computer = new ComputerAI_Input(new ComputerAI_General());
|
// AllZone.Computer = new ComputerAI_Input(new ComputerAI_General());
|
||||||
Constant.Quest.fantasyQuest[0] = false;
|
Constant.Quest.fantasyQuest[0] = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user