Card-Forge / Card-Forge/forge

AI doesn't cast cards with "Activated abilities of sources with the chosen name can’t be activated"

Open
#4,261 5 comments 0 reactions 1 assignee Assigned to @Agetian View on GitHub
AI Game Mechanics 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 even if player has legal targets onto the battlefield to name with them and if AI has free mana for it:

- [x] Pithing Needle
- [x] Sorcerous Spyglass
- [ ] Phyrexian Revoker
- [ ] Voidstone Gargoyle
- [ ] Disruptor Flute

**To Reproduce**
Steps to reproduce the behavior:
1. AI has Pithing Needle/etc. at hands and untapped land
2. Player has legal targets onto the battlefield to name with Pithing Needle
3. AI doesn't cast Pithing Needle/etc.

**Expected behavior**
AI should cast Pithing Needle/Sorcerous Spyglass/Phyrexian Revoker/Voidstone Gargoyle/Disruptor Flute if player had or has legal targets onto the battlefield to name with these cards.

**Desktop**
OS: Windows 10
Java Version: 1.8.0_202-b08
Forge Version: 1.6.59-SNAPSHOT-12.01 - 1.6.65-SNAPSHOT-08-15

**Screenshots**

![needlenot](https://github.com/Card-Forge/forge/assets/115870280/4c9232e1-fbe7-4bb4-9f86-a5a50d9bbf17)
![all](https://github.com/user-attachments/assets/8aace46b-814b-464e-884c-4c11d179af68)

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.