public void Handle(string logLine, IHsGameState gameState, IGame game) { if (!UnloadCardRegex.IsMatch(logLine)) { return; } var id = UnloadCardRegex.Match(logLine).Groups["id"].Value; if (game.CurrentGameMode == GameMode.Arena) { gameState.GameHandler.HandlePossibleArenaCard(id); } else { gameState.GameHandler.HandlePossibleConstructedCard(id, true); } }
public void Handle(string logLine, IHsGameState gameState, IGame game) { if (!UnloadCardRegex.IsMatch(logLine)) { return; } var id = UnloadCardRegex.Match(logLine).Groups["id"].Value; if (game.CurrentMode == Mode.DRAFT && game.PreviousMode == Mode.HUB) { gameState.GameHandler.HandlePossibleArenaCard(id); } else if (game.CurrentMode == Mode.COLLECTIONMANAGER && game.PreviousMode == Mode.HUB) { gameState.GameHandler.HandlePossibleConstructedCard(id, true); } }