Esempio n. 1
0
        protected virtual ActionBase Attack()
        {
            HREntity target = GetNextAttackToAttack();

            if (target != null)
            {
                var current = PlayerState.GetPossibleAttack(
                    HRPlayer.GetLocalPlayer(),
                    target.GetRemainingHP() + target.GetArmor());

                if (current.Cards.Count > 0)
                {
                    return(new AttackAction(current.Cards[0], target));
                }
            }

            return(null);
        }