[ClassicAI] AI attacks with creature with zero power without "creature assigns combat damage equal to its toughness"

Open
#13,028 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
ai, game-dev

Research direction

The bug is in the classic (non-FlatMC) AI's attack decision, so start by finding where it chooses attackers and check how it treats creatures with zero power. Reproduce with Spellskite on the battlefield, then Ragavan or Doran, the Siege Tower to compare, since the issue says the AI should only attack with a zero-power creature when a toughness-based damage effect is present. Done when the classic AI no longer declares a zero-power attacker without such an effect, and the FlatMC behaviour stays the same.

Written by the indexing model from the issue text.

Description

Describe the bug
AI attacks player with some creatures, one of them - Spellskite with zero power. It doesn't make sense without cards like Doran, the Siege Tower

To Reproduce
Steps to reproduce the behavior:

  1. AI attacks with Ragavan, Nimble Pilferer, creates a Treasure token and casts exiled opponent's Spellskite
  2. Later AI attacks with some creatures, one of them - Spellskite

Expected behavior
AI shouldn't attack with creatures with zero power without "creature assigns combat damage equal to its toughness" effect

Additional context
Actual for AI without FlatMC

Desktop

  • OS: Windows 10
  • Version: 2.0.16-SNAPSHOT-11.22

Screenshots

AI without FlatMC

spellsc class

AI with FlatMC (good)

spellsc flatmc
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
19h 28m
Merged PRs (30d)
316

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Card-Forge/forge

All issues in Card-Forge/forge

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.