mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[SHM] fixed Repel Intruders not being able to be cast when stack is empty (fixes #8715)
This commit is contained in:
parent
3f37b5aa76
commit
d3ebac1776
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue