Ward handling by AI seems to be bugged
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 940
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 160
Description

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:

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