示例#1
0
 public void HandleOpponentSecretTrigger(string cardId, int turn, int otherId)
 {
     LogEvent("OpponentSecretTrigger", cardId);
     _game.OpponentSecretTriggered(cardId);
     _game.OpponentSecretCount--;
     _game.OpponentSecrets.SecretRemoved(otherId);
     if (_game.OpponentSecretCount <= 0)
     {
         Helper.MainWindow.Overlay.HideSecrets();
     }
     else
     {
         if (Config.Instance.AutoGrayoutSecrets)
         {
             _game.OpponentSecrets.SetZero(cardId);
         }
         Helper.MainWindow.Overlay.ShowSecrets();
     }
     _game.AddPlayToCurrentGame(PlayType.OpponentSecretTriggered, turn, cardId);
     GameEvents.OnOpponentSecretTriggered.Execute(GameV2.GetCardFromId(cardId));
 }