Card-Forge / Card-Forge/forge

AI casts creatures with haste, which are sacrificed at the end of the turn, while the player has protection from creatures

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

Description

**Describe the bug**
AI casts creatures like Arc Runner or Lightning Serpent while the player has protection from creatures. It's just a waste of resource.

**To Reproduce**
Steps to reproduce the behavior:
1. Player has Serra Emissary with protection from creatures
2. AI has 3+ untapped Mountain and Arc Runner in hand
3. AI casts Arc Runner and don't attack
4. At the beginning of the end step, AI sacrifices Arc Runner.

**Expected behavior**
AI shouldn't cast creatures with haste, which are sacrificed at the end of the turn, while the player has protection from creatures.

**Additional context**
Full list of these creatures and spells that create similar creatures: [(oracle:Haste oracle:At oracle:the oracle:beginning oracle:of oracle:the oracle:end oracle:step, oracle:sacrifice oracle:this oracle:creature)](https://scryfall.com/search?q=%28oracle%3AHaste+oracle%3AAt+oracle%3Athe+oracle%3Abeginning+oracle%3Aof+oracle%3Athe+oracle%3Aend+oracle%3Astep%2C+oracle%3Asacrifice+oracle%3Athis+oracle%3Acreature%29&unique=cards&as=grid&order=name)

Very similar with #4264, but it's problem of casting/activating abilities, not attacking

**Desktop:**
- OS: Windows 10
- Version: 2.0.03-SNAPSHOT-03.28

**Smartphone :**
- OS: Android 11
- Version: 2.0.03-SNAPSHOT-03.28

**Screenshots**

![Image](https://github.com/user-attachments/assets/a74648e5-f93a-41d1-ab91-0b80dc8f7811)
![Image](https://github.com/user-attachments/assets/3420df77-d1d5-4b83-99bb-2e4a59f78b31)

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.