Card-Forge / Card-Forge/forge

AI prefers to attack with Stoneforge Mystic/Elvish Piper rather than activating their ability

Open
#4,022 4 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 prefers to attack with creatures with activated ability "tap: put card on the battlefield" rather than activating its ability if doesn't have any big creatures on the battlefield:

- [ ] Stoneforge Mystic (even if it has Kaldra Compleat in its hand and activating the ability would deal more damage);
- [ ] Elvish Piper (even if it has big creatures in hands).

**To Reproduce**
Steps to reproduce the behavior:
1. AI casts Stoneforge Mystic and finds Kaldra Compleat
2. Player doesn't have any big creatures on the battlefield, he passes the turn
3. AI attacks with its Stoneforge Mystic

and

1. AI has Elvish Piper without summoning sickness and untapped Forest on the battlefield and Iona, Shield of Emeria in hands
2. Player doesn't have any big creatures on the battlefield
3. AI attacks with its Elvish Piper

**Expected behavior**
AI should activate Stoneforge Mystic's/Elvish Piper's ability as often as possible, priority should be higher

**Desktop**
OS: Windows 10
Java Version: 1.8.0_202-b08
Forge Version: 1.6.59-SNAPSHOT-10.28 - 1.6.64-SNAPSHOT-08.02

**Screenshots**

![mystic1](https://github.com/Card-Forge/forge/assets/115870280/f15db057-2c05-45c3-aaac-238ed867cddf)
![mystic2](https://github.com/Card-Forge/forge/assets/115870280/ecd6dbba-2674-440b-8b4b-098fa5174a8c)
![mystic3](https://github.com/Card-Forge/forge/assets/115870280/a5ebaac9-cdd3-4fe9-be07-b070a07a8706)
![mystic4](https://github.com/Card-Forge/forge/assets/115870280/bc229ba1-67f0-47b6-b63a-21904763fb11)
![elv](https://github.com/user-attachments/assets/884276d9-4429-499c-8d92-e1eca3b4c6b7)

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.