Exemplo n.º 1
0
        private static Creature doBuffs(TargetEffects.BuffTarget buff, Creature c)
        {
            c.abilities = buff.getBuffedAbilities(c.abilities);
            c.buff      = buff;

            return(c);
        }
Exemplo n.º 2
0
        public static Card Target(TargetEffects.BuffTarget buff, GameState state) //Didn't work for some reason
        {
            foreach (Card c in state.PlayerField)
            {
                if (c is Creature)
                {
                    Creature crc = c as Creature;
                    doBuffs(buff, crc);
                    GameState newState = new GameState(state, c);
                    unDoBuffs(buff, crc);
                    state.addState(newState);
                }
            }

            GameState bestState = bestStateFinder(state);

            if (bestState == state)
            {
                return(null);
            }
            else
            {
                return(bestState.target);
            }
        }
 public override void deepCopy(Card c)
 {
     if (c.GetType() == this.GetType())
     {
         Creature inC = (Creature)c;
         this.abilityMask       = inC.abilityMask;
         this.health            = inC.Health;
         this.SummonSick        = inC.SummonSick;
         this.abilities         = inC.abilities;
         this.powerCounters     = inC.powerCounters;
         this.toughnessCounters = inC.toughnessCounters;
         this.buff = inC.buff;
     }
 }
Exemplo n.º 4
0
 private static Creature unDoBuffs(TargetEffects.BuffTarget buff, Creature c)
 {
     c.abilities = c.buff.getOriginalAbilities();
     c.buff      = null;
     return(c);
 }
Exemplo n.º 5
0
 public BuffTarget(BuffTarget buff)
 {
     this.powerCounters = buff.powerCounters;
     this.toughCounters = buff.toughCounters;
     this.abilityList   = buff.abilityList;
 }