Card-Forge / Card-Forge/forge

AI selects the same target for an additional trigger

Open
#7,480 2 comments 1 reaction 0 assignees 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**
When AI has "... that ability triggers an additional time" effect, it selects the same target for the additional trigger as it did for the first trigger. It's a problem because there are few enemies in Adventure mode which has this effect.

**To Reproduce**
Steps to reproduce the behavior:
1. AI has 4 untapped islands and Naban, Dean of Iteration on the battlefield
2. AI has Venser, Shaper Savant in its hands
3. Player has Birds of Paradise and Noble Hierarch on the battlefield
4. AI casts Venser, Shaper Savant
5. AI targets Birds of Paradise with the first trigger of Venser, Shaper Savant
6. AI targets same Birds of Paradise with the additional trigger of Venser, Shaper Savant
7. Birds of Paradise is returned to player’s hand by first trigger
8. Additional trigger of Venser, Shaper Savant fizzles

**Expected behavior**
AI should select different target for an additional trigger

**Additional context**
Same problem with these cards: https://scryfall.com/search?as=grid&order=name&q=%28oracle%3Aability+oracle%3Atriggers+oracle%3Aan+oracle%3Aadditional+oracle%3Atime%29+%28game%3Apaper%29

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

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

**Screenshots**

![Image](https://github.com/user-attachments/assets/580e3d06-80d7-45aa-bf0e-d1885529c82a)
![Image](https://github.com/user-attachments/assets/34b51379-34da-4d66-8417-3f78757f5004)
![Image](https://github.com/user-attachments/assets/0d0e60bc-a207-4e6f-ac67-734fc6c48a1f)

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.