AI Match fix
This commit is contained in:
@@ -68,7 +68,9 @@ public static class GameEngine
|
||||
{
|
||||
(p1AccountId, p1Deck, p1ArchSpirit, 0, 0),
|
||||
(p2AccountId, p2Deck, p2ArchSpirit, 1, 1),
|
||||
}, "FFA", rules?.BoardShape is null or "" or "Default" ? "Rectangle" : rules.BoardShape, rules);
|
||||
}, "FFA", rules?.BoardShape is null or "" or "Default"
|
||||
? (rules?.GridType == "Hexagon" ? "Hexagon" : "Rectangle")
|
||||
: rules.BoardShape, rules);
|
||||
|
||||
/// <summary>
|
||||
/// N-player Initialize overload. Each player entry carries their account ID,
|
||||
|
||||
@@ -203,7 +203,7 @@ internal sealed class GameReadyHandler : GameHandlerBase, IMessageHandler
|
||||
}
|
||||
|
||||
var boardShape = rules?.BoardShape is null or "" or "Default"
|
||||
? BoardShapeGenerator.AutoShape(playerList.Count)
|
||||
? (rules?.GridType == "Hexagon" ? "Hexagon" : BoardShapeGenerator.AutoShape(playerList.Count))
|
||||
: rules.BoardShape;
|
||||
state = GameEngine.Initialize(
|
||||
session.Id,
|
||||
|
||||
Reference in New Issue
Block a user