Card-Forge / Card-Forge/forge

AI activates abilities of creatures/lands to to give them the ability to block but doesn't block with them

Open
#4,301 3 comments 0 reactions 1 assignee Claimed by @Agetian View on GitHub
AI keep
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
158

Description

**Describe the bug**
AI activates abilities of this creatures/lands to to give them the ability to block (becomes creature/flying) but doesn't block with them:

- [ ] Creeping Tar Pit
- [ ] Mothdust Changeling
- [ ] Psychic Frog
- [ ] Destiny Spinner (AI activates Destiny Spinner to create blockers in response to attack of player's creatures with flying. But they haven't reach/flying)

**To Reproduce**
Steps to reproduce the behavior:
1. AI has 4 hp
2. AI has Creeping Tar Pit and Mutavault
3. Player attacks AI with some creatures
4. AI activates abilities of Creeping Tar Pit and Mutavault
5. AI blocks only with Mutavault
6. AI is dead

and

1. AI has Mothdust Changeling
2. Player attacks with creature with flying
3. AI uses Mothdust Changeling ability:
3.1. AI taps Mothdust Changeling (if Mothdust Changeling is the one and only creature)
3.2. AI taps another creature but doesn't block

and

1. AI has Psychic Frog
2. Player attacks with creature with flying
3. AI activates ability of Psychic Frog
4. AI doesn't block with them if it hasn't low hp

and

1. AI has Destiny Spinner and low hp
2. Player attack with creatures with flying
3. AI activates ability of Destiny Spinner
4. Land becomes an X/X Elemental creature with trample and haste
5. AI is dead

**Expected behavior**
AI should activate abilities of creatures/lands to give them the ability to block, if it will actually block with them!

**Additional context**
Similar problem to #3790

**Desktop**
OS: Windows 10
Java Version: 1.8.0_202-b08
Forge Version: 1.6.64-SNAPSHOT-07.13

**Screenshots**

![lands](https://github.com/Card-Forge/forge/assets/115870280/9d6c3133-e2d9-4297-9e9c-1a8756363860)
![mothdust](https://github.com/Card-Forge/forge/assets/115870280/4d35e641-1582-4d2c-9bb9-5083ba6b834b)
![mothdust2](https://github.com/Card-Forge/forge/assets/115870280/ce3587ce-d768-4d40-8a05-56cfd3930191)
![frog1](https://github.com/user-attachments/assets/0b208bcc-dbea-4bf3-82d6-cc019e3fedad)
![frog2](https://github.com/user-attachments/assets/3bdc395d-7c8e-4d2f-ab3e-8dc06d21c749)
![block](https://github.com/Card-Forge/forge/assets/115870280/40009de9-ee8e-4230-b224-42a6ced54f2a)

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.