From d3ebac177674f7e963e83bfc2610236fe431a5e5 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 19 Feb 2022 18:32:43 -0500 Subject: [PATCH] [SHM] fixed Repel Intruders not being able to be cast when stack is empty (fixes #8715) --- Mage/src/main/java/mage/target/TargetSpell.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mage/src/main/java/mage/target/TargetSpell.java b/Mage/src/main/java/mage/target/TargetSpell.java index b959d8697e..5523f16363 100644 --- a/Mage/src/main/java/mage/target/TargetSpell.java +++ b/Mage/src/main/java/mage/target/TargetSpell.java @@ -66,6 +66,9 @@ public class TargetSpell extends TargetObject { @Override public boolean canChoose(UUID sourceId, UUID sourceControllerId, Game game) { + if (this.minNumberOfTargets == 0) { + return true; + } int count = 0; for (StackObject stackObject : game.getStack()) { // rule 114.4. A spell or ability on the stack is an illegal target for itself.