Card-Forge / Card-Forge/forge

AI doesn't cast Invert Polarity

Open
#5,897 4 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 Invert Polarity even if its single card, it has enough mana and player casts something

**To Reproduce**
Steps to reproduce the behavior:
1. AI has 2 untapped Islands and 2 untapped Mountains
2. AI has only Invert Polarity in hands
3. Player casts a creature with cmc 4
4. AI doesn't cast Invert Polarity

**Expected behavior**
AI should cast Invert Polarity for spells with 3+ cmc

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

**Screenshots**

![inv2](https://github.com/user-attachments/assets/c390dbee-121d-426d-922b-ff8e98c1606a)

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.