Fix Norn's Inquisitor (#10357)

This commit is contained in:
xenohedron 2023-05-12 03:07:59 -04:00 committed by GitHub
parent e4f3f263a4
commit f5ab5a8caf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,7 @@ import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Zone;
import mage.counters.CounterType;
import mage.filter.StaticFilters;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.permanent.Permanent;
@ -71,7 +72,7 @@ class NornsInquisitorTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
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;
}
this.getEffects().setTargetPointer(new FixedTarget(permanent, game));