Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
danbastin committed Jan 3, 2025
2 parents b66caa6 + 3e1fc6a commit 6d3cd18
Show file tree
Hide file tree
Showing 103 changed files with 11,649 additions and 1,412 deletions.
7 changes: 7 additions & 0 deletions AI/EncounterAI.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,13 @@ function EncounterAI()
ProcessInput($currentPlayer, 9, $options[0], 0, 0, "");
CacheCombatResult();
}
else if($turn[0] == "LOOKHAND" && $mainPlayer = $currentPlayer)
{
if($AIDebug) WriteLog("AI Branch - Opponent's Hand");
$options = explode(",", $turn[2]);
ProcessInput($currentPlayer, 99, $options[0], 0, 0, "");
CacheCombatResult();
}
else if($turn[0] == "HANDTOPBOTTOM" && $mainPlayer = $currentPlayer)
{
if($AIDebug) WriteLog("AI Branch - Hand Top/Bottom");
Expand Down
2 changes: 1 addition & 1 deletion APIs/SubmitSideboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
fwrite($handler, "M 1\r\n"); //What phase/player is active
fwrite($handler, "1\r\n"); //Action points
fwrite($handler, "\r\n"); //Combat Chain
fwrite($handler, "0 0 0 0 0 0 0 GY NA 0 0 0 0 0 0 0 NA 0 0 -1 -1 NA 0 0 0 -1 0 0 0 0 - 0 0 0 0 0 0 0\r\n"); //Combat Chain State
fwrite($handler, "0 0 0 0 0 0 0 GY NA 0 0 0 0 0 0 0 NA 0 0 -1 -1 NA 0 0 0 -1 0 0 0 0 - 0 0 0 0 0 NA -\r\n"); //Combat Chain State
fwrite($handler, "\r\n"); //Current Turn Effects
fwrite($handler, "\r\n"); //Current Turn Effects From Combat
fwrite($handler, "\r\n"); //Next Turn Effects
Expand Down
Loading

0 comments on commit 6d3cd18

Please sign in to comment.