Skip to content

When you add/draw a card and have to discard immediately afterwards, the bot does not see that card in the hand. #150

@KingDwarf25

Description

@KingDwarf25

//Effect: Each player draws 1 card, then each player discards 1 card.
private bool ActivateDarkWorldDealings()
{
AI.SelectCard(CardToDiscard());
return true;
}

//Effect: During the Main Phase: You can add 1 "Ojama" card from your Deck to your hand, then discard 1 card
private bool ActivateOjamaPajamaSearch()
{
if (OjamaPajamaMaySearch == true)
{
AI.SelectCard(OjamaPajamaSearchHelper());
AI.SelectNextCard(CardToDiscard());
return true;
}
return false;
}

For instance: If we draw a card with dark world dealings or add a card to our hand with OjamaPajama we then have to discard a card.
I wrote a method that goes over my hand since I am an OjamaABC player and want to discard Ojama Magic A, B, or C as much as possible.

But I found out that the card we just added is not yet in the Bot.Hand.

Is there a fix for this? Or am I just doing it wrong xD

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions