AI kills its creature or damages itself by suspended Rift Bolt/triggers of Valakut if player and its creatures have hexproof/protection
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 1.1k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 158
Description
**Describe the bug**
After the player casts Surge of Salvation in response to the trigger of suspend from Rift Bolt, AI chooses to kill their Monastery Swiftspear or damage itself instead to choose not to cast Rift Bolt.
Same situation for triggers of Valakut, the Molten Pinnacle. If a player and his creatures have protection from lands, AI targets its own creatures by triggers of Valakut, the Molten Pinnacle. But there is a word "may" in the text of Valakut, the Molten Pinnacle, which AI ignores.
**To Reproduce**
Steps to reproduce the behavior:
1. AI casts Monastery Swiftspear
2. AI suspends Rift Bolt
3. Player casts Surge of Salvation in response to the trigger of suspend from Rift Bolt
4. AI chooses to cast Rift Bolt and kill its Monastery Swiftspear
or
1. AI has no creatures
2. AI suspends Rift Bolt
3. Player casts Surge of Salvation in response to the trigger of suspend from Rift Bolt
4. AI chooses to cast Rift Bolt and damage itself
or
1. Player has Serra's Emissary with protection from lands
2. AI has Valakut, the Molten Pinnacle, 4+ lands and some creatures
3. AI casts Primeval Titan
4. AI finds 2 lands and targets its creatures by triggers of Valakut, the Molten Pinnacle
**Expected behavior**
1. AI should choose not to cast Rift Bolt if player and its creatures have hexproof/protection.
2. AI shouldn't target its own creatures or itself by triggers of Valakut, the Molten Pinnacle.
**Additional context**
Similar with #4001
**Desktop**
OS: Windows 10
Java Version: 1.8.0_202-b08
Forge Version: from 1.6.59-SNAPSHOT-11.24 to 1.6.60-SNAPSHOT-02.03
**Screenshots**





Contributor guide
Assessment
This issue has not been assessed yet.