Card-Forge / forge

An unofficial rules engine for the world's greatest card game.
https://card-forge.github.io/forge/
GNU General Public License v3.0
947 stars 548 forks source link

AI choose a wrong card to name with Pithing Needle #4260

Open MorihiroS opened 10 months ago

MorihiroS commented 10 months ago

Describe the bug When AI searches for Pithing Needle from Urza's Saga trigger, it puts Pithing Needle onto the battlefield and chooses the card name "Liliana of the Veil" if there are no other targets on the battlefield. Even if he's playing against a deck with no black.

To Reproduce Steps to reproduce the behavior:

  1. AI plays Urza's Saga
  2. When Urza's Saga is sacrificed, AI searches for Pithing Needle and puts it onto the battlefield
  3. Player doesn't have legal targets onto the battlefield to name with Pithing Needle
  4. AI names "Liliana of the Veil"

Expected behavior AI shouldn't names "Liliana of the Veil" or other wrong cards with Pithing Needle. If there aren't and haven't been any legitimate targets, then AI shouldn't be looking for the Pithing Needle from Urza's Saga trigger at all.

Desktop OS: Windows 10 Java Version: 1.8.0_202-b08 Forge Version: 1.6.59-SNAPSHOT-12.01

Screenshots

needle needle2

github-actions[bot] commented 9 months ago

This issue has not been updated in a while and has now been marked as stale. Stale messages will be auto closed.

MorihiroS commented 9 months ago

@Hanmac, need AI label, keep label and assign Agetian, pls

Happy New Year to you!