Exemplo n.º 1
0
        public bool BorreloadDragoneff()
        {
            if (ActivateDescription == -1 && (Duel.Phase == DuelPhase.BattleStart || Duel.Phase == DuelPhase.End))
            {
                ClientCard enemy_monster = Enemy.BattlingMonster;
                if (enemy_monster != null && enemy_monster.HasPosition(CardPosition.Attack))
                {
                    return(Card.Attack - enemy_monster.Attack < Enemy.LifePoints);
                }
                return(true);
            }
            ;
            ClientCard BestEnemy = Util.GetBestEnemyMonster(true);
            ClientCard WorstBot  = Bot.GetMonsters().GetLowestAttackMonster();

            if (BestEnemy == null || BestEnemy.HasPosition(CardPosition.FaceDown))
            {
                return(false);
            }
            if (WorstBot == null || WorstBot.HasPosition(CardPosition.FaceDown))
            {
                return(false);
            }
            if (BestEnemy.Attack >= WorstBot.RealPower)
            {
                AI.SelectCard(BestEnemy);
                return(true);
            }
            return(false);
        }