Card-Forge / Card-Forge/forge

AI casts some spells only as a removal but they're used in a different way

Open
#4,118 1 comment 0 reactions 0 assignees 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 casts some spells only as a removal but they're used in a different way:

- [ ] Indomitable Creativity (AI uses Indomitable Creativity as a removal, though this only works against very large and nasty creatures, and doesn't guarantee a good outcome. That said, AI doesn't use Indomitable Creativity on its 1/1 creatures, even though it knows it has big nasty creatures in its deck).
- [ ] Transmogrify (same)
- [ ] Gleeful Demolition (AI doesn't cast Gleeful Demolition to kill weak artifacts and create creatures for convoke)
- [ ] Electrodominance (AI casts only as a removal and then it uses it's effect and casts, for example, Crashing Footfalls)

**To Reproduce**
Steps to reproduce the behavior:
1. Player has creatures
2. AI casts Dwarven Mine and takes 1/1 red Dwarf creature token
3. AI casts Indomitable Creativity/Transmogrify and targets player's creatures

AND

1. AI casts Memnite
2. AI has Gleeful Demolition
3. AI casts Gleeful Demolition only to destroy player's artifact

AND

1. AI has 2+ red untapped lands
2. AI has Electrodominance and Crashing Footfalls in its hands
3. AI doesn't cast Electrodominance until player play some creatures like mana dorks. Only in this case AI uses Electrodominance and cast Crashing Footfalls for free.

**Expected behavior**
AI should use Indomitable Creativity/Transmogrify on its 1/1 creatures (or even on its 2/2 Goblin token) if it knows it only has big, powerful creatures in its deck.
AI should use Gleeful Demolition more often against its weak artifacts than against player artifacts.
AI should cast Electrodominance if it has at least spells with 0 cmc in its hands.

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

**Screenshots**

![creativity](https://github.com/Card-Forge/forge/assets/115870280/70c3a6b7-50a1-431f-a91c-01e2eb3b4aa9)
![creativity2](https://github.com/Card-Forge/forge/assets/115870280/db0145a1-05e8-40ac-8991-f5674fe0f67c)
![kuldotha2](https://github.com/Card-Forge/forge/assets/115870280/e505b64e-71e7-48ad-83b5-fc98bdf6366e)
![Restore](https://github.com/Card-Forge/forge/assets/115870280/f146dee2-09fb-40db-ab20-b2e846c5f318)
![electro1](https://github.com/user-attachments/assets/7e3394fb-9470-4a21-bc43-e3e1d7a37275)
![electro2](https://github.com/user-attachments/assets/7e52557c-760b-46af-9cb7-e6695675994e)

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.