Card-Forge / Card-Forge/forge

AI targets creatures other than Crystal Barricade with its damage-dealing spells

Open
#7,477 3 comments 0 reactions 2 assignees Claimed by @Agetian View on GitHub
AI BUG Game Mechanics keep
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
163

Description

**Describe the bug**
If a player has a Crystal Barricade and other low-toughness creatures on the battlefield, AI casts spells like Lightning Bolt and targets those creatures instead of the Crystal Barricade, so damage is prevented.

**To Reproduce**
Steps to reproduce the behavior:
1. Player has Birds of Paradise and Crystal Barricade on the battlefield
2. AI has a lot of mana and Lightning Cloud on the battlefield
3. AI casts a red spell and pay one red mana for Lightning Cloud
4. AI targets Birds of Paradise
5. Damage is prevented

**Expected behavior**
AI should always targets Crystal Barricade with its damage-dealing spells

**Additional context**
Spells like Skullcrack and Stomp can deal damage to other creatures, so that's something to consider.

**Desktop:**
- OS: Windows 10
- Version: 2.0.03-SNAPSHOT-04.28

**Smartphone :**
- OS: Android 11
- Version: 2.0.03-SNAPSHOT-04.28

**Screenshots**

![Image](https://github.com/user-attachments/assets/6e8d9e66-2e02-451f-9569-2cca23d8ed09)
![Image](https://github.com/user-attachments/assets/cf61d634-e274-4e28-a492-a8d87add6f5a)

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.