Skip to content

Commit

Permalink
Target spell abilities - fixed that it was playable in some non-playa…
Browse files Browse the repository at this point in the history
…ble use cases (example: Goblin Artisans)
  • Loading branch information
JayDi85 committed Sep 18, 2024
1 parent 8fa4405 commit 91c1d1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Mage/src/main/java/mage/target/TargetSpell.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

package mage.target;

import mage.abilities.Ability;
Expand Down Expand Up @@ -110,7 +109,7 @@ public TargetSpell copy() {
private boolean canBeChosen(StackObject stackObject, UUID sourceControllerId, Ability source, Game game) {
return stackObject instanceof Spell
&& game.getState().getPlayersInRange(sourceControllerId, game).contains(stackObject.getControllerId())
&& filter.match(stackObject, sourceControllerId, source, game);
&& canTarget(sourceControllerId, stackObject.getId(), source, game);
}

@Override
Expand Down

0 comments on commit 91c1d1d

Please sign in to comment.