Ejemplo n.º 1
0
    public static async Task ActAsync(SelfCtx ctx)
    {
        // Gain a Minor Power.
        // If you have 4 moon, You may gain a Major Power instead of a Minor Power.
        if (await ctx.YouHave("4 moon"))
        {
            await ctx.Draw();
        }
        else
        {
            await ctx.DrawMinor();
        }

        // You may Forget this Power Card to gain 3 Energy.
        var thisCard = ctx.Self.InPlay.SingleOrDefault(x => x.Name == ShapeTheSelfAnew.Name);

        if (thisCard != null &&      // might have already been forgotten when picking a major card.
            await ctx.Self.UserSelectsFirstText("Forget this card for +3 energy.", "Yes, forget it.", "no thanks.")
            )
        {
            // Forget this Power Card
            ctx.Self.Forget(thisCard);

            // gain 3 energy
            ctx.Self.Energy += 3;
        }
    }
    public bool RunAfterGrowthResult => false;     // no growth dependencies

    public override async Task ActivateAsync(SelfCtx ctx)
    {
        if (!drewMinor)
        {
            await ctx.DrawMinor();
        }
        drewMinor = true;

        ctx.Self.tempCardPlayBoost++;
    }