Card-Forge / Card-Forge/forge

AI doesn't cast some combat tricks to protect his permanents or itself

Open
#4,464 0 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)
158

Description

**Describe the bug**
AI doesn't cast these cards to protect itself or its creatures:

- [ ] Surge of Salvation
- [ ] Luminesce
- [ ] Vines of Vastwood (without kicker)

**To Reproduce**
Steps to reproduce the behavior:
1. AI has Birds of Paradise and untapped Razorverge Thicket
2. AI has Surge of Salvation or Luminesce in hand
3. Player casts Lightning Bolt and targets Birds of Paradise
4. AI doesn't cast Surge of Salvation or Luminesce
or
1. AI has untapped Razorverge Thicket
2. AI has Surge of Salvation in hand
3. Player casts Inquisition of Kozilek and targets AI
4. AI doesn't cast Surge of Salvation

AND

1. AI has 1 untapped mana source and Vines of Vastwood in hand
2. Player casts Skewer the Critics and targets AI's creature
3. AI doesn't cast Vines of Vastwood
but
1. AI has 2 untapped mana source and Vines of Vastwood in hand
2. Player casts Searing Blaze and targets AI's creature
3. AI casts Vines of Vastwood with kicker

**Expected behavior**
AI should cast Surge of Salvation to protect itself or its creatures.
AI should cast Luminesce to prevent damage from red/black sources
AI should cast Vines of Vastwood without kicker if it isn't AI combat phase and player casts targeting spell

**Additional context**
AI casts similar Heroic Intervention to protect its creatures.

![Heroic](https://github.com/Card-Forge/forge/assets/115870280/64d9873a-1225-4f2d-99f2-a9e0aeb63205)

And AI skillful casts Tamiyo's Safekeeping #4434

**Desktop**
OS: Windows 10
Java Version: 1.8.0_202-b08
Forge Version: 1.6.60-SNAPSHOT-01.01

**Screenshots**

![surge](https://github.com/Card-Forge/forge/assets/115870280/7dc94468-1d48-4ce3-94f7-7b78cda502b2)
![surge2](https://github.com/Card-Forge/forge/assets/115870280/af135ebf-59ab-4dc6-aa54-25f4ffd1c137)
![surge3](https://github.com/Card-Forge/forge/assets/115870280/1ae50f48-2e4f-432d-a89c-12c887ba5a8b)
![surge4](https://github.com/Card-Forge/forge/assets/115870280/153115f7-95cb-4fb7-a118-c9773c63d93b)
![vines1](https://github.com/user-attachments/assets/56f9d02b-7156-4c09-81b6-0eb4b9386675)
![vines2](https://github.com/user-attachments/assets/59f3770a-476f-4a6d-ac20-d647796029fc)
![vines3](https://github.com/user-attachments/assets/0064d216-e892-44c2-bd97-73dbce7c1a0a)

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.