Card-Forge / Card-Forge/forge

AI activates ability of Elvish Piper at it's turn

Open
#4,280 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 ability of Elvish Piper at it's turn. It loses the effect of surprise.

**To Reproduce**
Steps to reproduce the behavior:
1. AI casts Elvish Piper
2. In next AI's turn AI activates ability of Elvish Piper

**Expected behavior**
1. AI should activate ability of Elvish Piper as late as possible. Ideally at the end of the opponent's turn
2. AI should activate ability of Elvish Piper in response to casting player's Cursed Totem, Phyrexian Revoker, Pithing Needle and other cards with "Activated abilities can't be activated"
3. AI should activate ability of Elvish Piper in response to an attack by a player's creatures before blockers are assigned
4. AI should activate ability of Elvish Piper in response of player's spells that targets Elvish Piper
5. AI should activate ability of Elvish Piper in it's turn before combat if it has creatures with haste or creatures like Iona, Shield of Emeria
6. AI should activate ability of Elvish Piper in it's turn if player has Aether Vial with 2 counters and/or has only two lands and one of these lands can produce blue mana (i.e. a player cannot cast Tishana's Tidebinder this turn, but can next turn)

**Additional context**
Similar for Monster Manual and Quicksilver Amulet

**Desktop**
OS: Windows 10
Java Version: 1.8.0_202-b08
Forge Version: 1.6.59-SNAPSHOT-12.02

**Screenshots**

![piper](https://github.com/Card-Forge/forge/assets/115870280/9b998d26-5175-4f37-ab6e-334c7ef07785)

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.