Exemple #1
0
    public void RunStoryCard()
    {
        if (currentEvent != null)
        {
            currentEvent.effect.execute(players, currentEvent, this);
        }
        else if (currentTournament != null)
        {
            currentTournament.tournament.execute(null, currentTournament, this);
        }
        else if (currentQuest != null)
        {
            currentQuest.quest.execute(players, currentQuest, this);

            //CHECK HERE IF CARDS TO BE ADDED BY SPONSOR BREAK THE RULES RETURN ALL THESE CARDS TO HIS HAND AND FORCE HIM TO REDECIDE
            if (QuestState.state == "Sponsoring")
            {
                if (!GameUtil.AnyFoes(userInput.cardPrompt.selectedCards) && GameUtil.AnyWeapons(userInput.cardPrompt.selectedCards))
                {
                    //there are foes but no weapons return all cards to hand and start again
                    UIUtil.ReturnToPlayerHand(players[GameUtil.CheckSponsorship(players)], userInput.cardPrompt.selectedCards, this);
                }
            }
        }
    }