Card-Forge / Card-Forge/forge

AI doesn't activate ability of Catapult Captain

Open
#6,719 3 comments 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)
158

Description

**Describe the bug**
AI doesn't activate Captain Catapult's ability, even if player's life points are less than or equal to the toughness of another creature under AI control

**To Reproduce**
Steps to reproduce the behavior:
1. Player has 6 lifes or less
2. AI has transformed Catapult Captain without summoning sickness and Giant Ox
3. AI has untapped swamp and two other untapped lands
4. AI doesn't activate ability of Catapult Captain

**Expected behavior**
AI should activate Captain Catapult's ability if player's life points are less than or equal to the toughness of another creature under AI control

**Additional context**
It would be nice (but unlikely to be realized) if AI could add up the sum of the toughness of its other two creatures and, if their toughness values are greater than or equal to the player's life points, it could activate the ability either at the end of the player's turn and then at the beginning of its own turn.

**Desktop**
OS: Windows 10
Java Version: JDK 17.0.13
Forge Version: 2.0.01-SNAPSHOT-12.23

**Screenshots**

![catapult](https://github.com/user-attachments/assets/c5eeba08-e481-4aec-810c-75d8bab1c8fc)
![catapult2](https://github.com/user-attachments/assets/df9f844f-0876-49c9-b776-4c7f16168ce4)

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.