Card-Forge / Card-Forge/forge

AI doesn't cast Skullcrack while the player has more than 10 hp

Open
#6,015 3 comments 0 reactions 1 assignee Assigned to @Agetian View on GitHub
AI keep
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
158

Description

**Describe the bug**
AI doesn't cast Skullcrack while the player has more than 5 lifes. AI just keeps the card in its hand and waits.

**To Reproduce**
Steps to reproduce the behavior:
1. Player has 6+ lifes
2. AI has 2+ untapped Mountain on the battlefield and Skullcrack in hands
3. AI doesn't cast Skullcrack

**Expected behavior**
AI should cast Skullcrack, especially in response to spells that prevent damage or give protection from damage

**Additional context**
AI should take into account the Prowess trigger of its creatures

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

**Screenshots**

![burn1](https://github.com/user-attachments/assets/5b5e5639-7767-4aa8-b1ea-7d12e37476d7)
![burn2](https://github.com/user-attachments/assets/dfe4edd2-7baa-4d44-ba24-3e96e8efcc94)
![burn3](https://github.com/user-attachments/assets/2bf0ab49-827b-4829-bd16-1be08faa075b)
![skull1](https://github.com/user-attachments/assets/102a6cad-b2d9-4f1a-a77a-77e9cf86af71)

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.