mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Target spell abilities - fixed that it was playable in some non-playable use cases (example: Goblin Artisans)
This commit is contained in:
parent
8fa4405125
commit
91c1d1dc72
1 changed files with 1 additions and 2 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.target;
|
package mage.target;
|
||||||
|
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
|
|
@ -110,7 +109,7 @@ public class TargetSpell extends TargetObject {
|
||||||
private boolean canBeChosen(StackObject stackObject, UUID sourceControllerId, Ability source, Game game) {
|
private boolean canBeChosen(StackObject stackObject, UUID sourceControllerId, Ability source, Game game) {
|
||||||
return stackObject instanceof Spell
|
return stackObject instanceof Spell
|
||||||
&& game.getState().getPlayersInRange(sourceControllerId, game).contains(stackObject.getControllerId())
|
&& game.getState().getPlayersInRange(sourceControllerId, game).contains(stackObject.getControllerId())
|
||||||
&& filter.match(stackObject, sourceControllerId, source, game);
|
&& canTarget(sourceControllerId, stackObject.getId(), source, game);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue