Exemplo n.º 1
0
        public CardTemplate ManaAbility(Action <ManaAbilityParameters> set)
        {
            _init.Add(cp =>
            {
                var p = new ManaAbilityParameters
                {
                    Priority = GetDefaultManaSourcePriority(cp),
                };

                set(p);

                cp.ActivatedAbilities.Add(new ManaAbility(p));
                cp.ManaColorsThisCardCanProduce.AddRange(p.Colors);
            });
            return(this);
        }
Exemplo n.º 2
0
        public CardTemplate ManaAbility(Action<ManaAbilityParameters> set)
        {
            _init.Add(cp =>
            {
              var p = new ManaAbilityParameters
            {
              Priority = GetDefaultManaSourcePriority(cp),
            };

              set(p);

              cp.ActivatedAbilities.Add(new ManaAbility(p));
              cp.ManaColorsThisCardCanProduce.AddRange(p.Colors);
            });
              return this;
        }
Exemplo n.º 3
0
 public ManaAbility(ManaAbilityParameters p)
     : base(p)
 {
     _p = p;
 }
Exemplo n.º 4
0
 public ManaAbility(ManaAbilityParameters p) : base(p)
 {
     _p = p;
 }