Tests: fix choice notTarget wrongly not checking Filter

This commit is contained in:
Susucre 2024-05-31 11:13:41 +02:00
parent 239f75fc8d
commit 5c02780cc4
2 changed files with 1 additions and 3 deletions

View file

@ -3,7 +3,6 @@ package org.mage.test.cards.single.mh3;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.mage.test.player.TestPlayer;
import org.mage.test.serverside.base.CardTestPlayerBase;
@ -108,7 +107,6 @@ public class BirthingRitualTest extends CardTestPlayerBase {
assertHandCount(playerA, "Centaur Courser", 1);
}
@Ignore // TODO: something weird with unit test, will be fixed separately.
@Test
public void test_Trigger_Sacrifice_MVRestriction() {
setStrictChooseMode(true);

View file

@ -4143,7 +4143,7 @@ public class TestPlayer implements Player {
continue;
}
if (hasObjectTargetNameOrAlias(card, targetName)) {
if (target.isNotTarget() || target.canTarget(card.getId(), source, game)) {
if (target.canTarget(getId(), card.getId(), source, game)) {
target.add(card.getId(), game);
targetFound = true;
break;