Card-Forge / Card-Forge/forge

AI doesn't cast Adventure Spells if it can cast main spells

Open
#4,352 2 comments 0 reactions 1 assignee Claimed by @Agetian View on GitHub
AI keep
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
163

Description

**Describe the bug**
AI doesn't cast these Adventure Spells if it can cast their main spells:

- [ ] Chop Down (AI doesn't cast Chop Down on enemy creatures, but instead casts Giant Killer. Not always, but often)
- [ ] Seek the Beast (AI doesn't cast Seek the Beast if it has untapped land with green)
- [ ] Heart's Desire (AI doesn't cast Heart's Desire if it can cast Lovestruck Beast even if it can cast both).

**To Reproduce**
Steps to reproduce the behavior:

1. Player casts Serra's Emissary
2. AI has Chop Down/Giant Killer
3. AI has mana for Chop Down
4. AI casts Giant Killer
and
1. AI has a lot of mana
2. AI casts Questing Druid, not Seek the Beast
and
1. AI has 4+ mana sources
2. AI has Lovestruck Beast in hands
3. AI casts Lovestruck Beast, not Heart's Desire

**Expected behavior**
AI should prefer to cast Adventure Half first

Chop Down should be prioritized by the AI over Giant Killer if the player has a large creature on the battlefield
AI should cast Seek the Beast sometimes
AI should cast Heart's Desire before Lovestruck Beast unless it immediately needs creatures for the block.

**Desktop**
OS: Windows 10
Java Version: 1.8.0_202-b08
Forge Version: 1.6.64-SNAPSHOT-08.04

**Screenshots**

![Giant](https://github.com/Card-Forge/forge/assets/115870280/28639934-1059-46c1-92b3-244a8f49fe8c)
![giant2](https://github.com/Card-Forge/forge/assets/115870280/c772cd5b-da96-4c5c-9e9e-3c877692484f)
![druid](https://github.com/Card-Forge/forge/assets/115870280/bb5c7dcf-ba55-494f-8dee-bc1cb6364166)
![beast](https://github.com/Card-Forge/forge/assets/115870280/6141b0f8-8997-4c6c-9319-e85de3f22c78)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.