Ejemplo n.º 1
0
        public bool HasLethal()
        {
            var enemy       = new LbPlayer(GameState.Get().GetFirstOpponentPlayer(Source));
            var cards       = CardsInField();
            int totalDamage = 0;

            foreach (var card in cards)
            {
                if (!card.CanAttack)
                {
                    continue;
                }
                totalDamage += card.AttackDamage;
            }
            return(totalDamage >= enemy.RemainingHealth);
        }
Ejemplo n.º 2
0
 public void Attack(LbPlayer target)
 {
     ActionQueue.Add(new AttackAction(this, target.HeroCard));
 }