magefree / magefree/mage

Ward handling by AI seems to be bugged

Open
#13,326 1 comment 0 reactions 0 assignees View on GitHub
AI
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

![Image](https://github.com/user-attachments/assets/258d23d2-310f-4beb-94ad-ce7cfc1a3aa1)

As seen in the log AI tries to kill Optimistic Scavenger with [[Burst Lightning]], but the scavenger has [[Sheltered by Ghosts]] on itself which gives him Ward 2. The ward triggers and AI chooses not to pay the cost and the spell fizzles off. This in itself would be only poor thinking on the AI part, but what worries me is what happens next. AI **chooses again** and this time pays the cost, but this has no effect whatsoever other than exhausting its mana pool:

![Image](https://github.com/user-attachments/assets/6079f556-c0a8-4d13-973b-0213dffa8940)

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, or entry point is named. Start by reproducing the reported interaction with Optimistic Scavenger, Sheltered by Ghosts, Ward 2, and Burst Lightning, then trace the AI's follow-up choice after the ward trigger. Done means the AI no longer pays mana for an ineffective second attempt after the spell fizzles.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
ai, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.