Skip to content

ABC AI Issues #17

Description

@TheFlameFlash

Util.GetBestEnemyCard()

canBeTarget parameter doesn't seem to work unless onlyFaceup is also true, so when the only available targets are cards like Dragun of the red-eyes the effect will activate and causes the ai to target one of its own cards

I:P masquerena effect

        private bool IPMasquerenaEffect()
        {
            int[] materials1 = new[] {
                CardId.CCrushWyvern,
                CardId.BBusterDrake,
                CardId.AAssaultCore,
                CardId.IPMasquerena,
            };
            int[] materials2 = new[] {
                CardId.IPMasquerena,
                CardId.UnionCarrier,
                CardId.KnightmareCerberus,
                CardId.KnightmarePhoenix,
                CardId.KnightmareUnicorn,
            };
            if (Duel.LastChainPlayer == 0)
                return false;
            ClientCard LastChainCard = Util.GetLastChainCard();
            if (LastChainCard != null && LastChainCard.IsCode(MonsterMassRemoval))
            {
                if (Bot.HasInMonstersZone(CardId.ABCDragonBuster))
                {
                    AI.SelectCard(CardId.ApollousaBOG);
                    AI.SelectMaterials(materials1);
                    return true;
                }

I have it so the ai would chain abc to masquerena effect, but if it does when the chain resolves masquerena the ai won't select the correct monster/materials to summon

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions