mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
Fix Norn's Inquisitor (#10357)
This commit is contained in:
parent
e4f3f263a4
commit
f5ab5a8caf
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.events.GameEvent;
|
import mage.game.events.GameEvent;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
@ -71,7 +72,7 @@ class NornsInquisitorTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
@Override
|
@Override
|
||||||
public boolean checkTrigger(GameEvent event, Game game) {
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
Permanent permanent = game.getPermanent(event.getTargetId());
|
Permanent permanent = game.getPermanent(event.getTargetId());
|
||||||
if (permanent == null || !permanent.hasSubtype(SubType.PHYREXIAN, game)) {
|
if (permanent == null || !StaticFilters.FILTER_CONTROLLED_PERMANENT.match(permanent, getControllerId(), this, game) || !permanent.hasSubtype(SubType.PHYREXIAN, game)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.getEffects().setTargetPointer(new FixedTarget(permanent, game));
|
this.getEffects().setTargetPointer(new FixedTarget(permanent, game));
|
||||||
|
|
Loading…
Reference in a new issue