Esempio n. 1
0
    public static AttachmentCard STEWARD_OF_GONDOR()
    {
        var result = new AttachmentCard(card_name: "Steward of Gondor", cost: 2, sphere: LOTRGame.SPHERE_OF_INFLUENCE.LEADERSHIP,
                                        traits: new List <LOTRGame.TRAITS>()
        {
            LOTRGame.TRAITS.GONDOR, LOTRGame.TRAITS.TITLE
        },
                                        ability: "Attach to a hero. Attached hero gains the Gondor trait. Action: Exhaust Steward of Gondor to add 2 resources to attached hero's resource pool.",
                                        set: "???");
        List <Func <EventArgs, Card, bool> > its_me_criteria = new List <Func <EventArgs, Card, bool> >()
        {
            CardEnablers.card_is_me
        };

        result.respond_to_event(GameEvent.CARD_PLAYED_KEY,
                                PlayerCardResponses.action_maker(its_me_criteria, PlayerCardResponses.steward_of_gondor_enters, result));
        result.set_action_card();
        List <Func <EventArgs, Card, bool> > all_action_criteria = new List <Func <EventArgs, Card, bool> >()
        {
            CardEnablers.i_am_played, CardEnablers.i_am_not_exhausted
        };

        result.set_action_criteria(all_action_criteria);
        result.respond_to_event(GameEvent.ACTIVATED_ACTION,
                                PlayerCardResponses.action_maker(all_action_criteria, PlayerCardResponses.steward_of_gondor_action,
                                                                 result));
        return(result);
    }