[SHM] fixed Repel Intruders not being able to be cast when stack is empty (fixes #8715)

This commit is contained in:
Evan Kranzler 2022-02-19 18:32:43 -05:00
parent 3f37b5aa76
commit d3ebac1776

View file

@ -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.