Skip to content

Add logic so that the AI will play Sylvan Library#9738

Open
marthinwurer wants to merge 5 commits intoCard-Forge:masterfrom
marthinwurer:sylvan_library
Open

Add logic so that the AI will play Sylvan Library#9738
marthinwurer wants to merge 5 commits intoCard-Forge:masterfrom
marthinwurer:sylvan_library

Conversation

@marthinwurer
Copy link
Contributor

The goal is to let the AI use Sylvan Library if it's in a premade deck. The AI should just use it for card filtering, like Mirri's Guile. I have a test for casting, and a test for not paying life to keep more cards.

Disclaimer: this PR was mostly written by AI (Claude Code). I have reviewed the generated code. Let me know if any changes are needed!

}

@Test
public void testSylvanLibraryCanBeCast() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test is close to useless

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was originally added because the AI wouldn't cast it at all because of the AI:RemoveDeck option in the card file. I can remove it entirely or add it to the other test, but it's not entirely useless because the previous behavior was just not casting it at all.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea that's the intended behaviour
I don't think we'll need a test to confirm that for every card

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants