[C13] Tempt with Immortality - fixed wrong target settings

This commit is contained in:
Oleg Agafonov 2023-09-06 22:44:42 +04:00
parent 4b3a19b4d5
commit ffd32804c8
2 changed files with 5 additions and 2 deletions

View file

@ -99,7 +99,7 @@ class TemptWithImmortalityEffect extends OneShotEffect {
private boolean returnCreatureFromGraveToBattlefield(Player player, Ability source, Game game) {
Target target = new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE);
target.withNotTarget(false);
target.withNotTarget(true);
if (target.canChoose(source.getControllerId(), source, game)) {
if (player.chooseTarget(outcome, target, source, game)) {
Card card = game.getCard(target.getFirstTarget());

View file

@ -38,6 +38,7 @@ public class SigardaHostOfHeronsTest extends CardTestPlayerBase {
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, "Diabolic Edict", playerA); // sacrificing for player A prevented by Sigarda
castSpell(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Diabolic Edict", playerB); // playerB has to sacrifice Sheldred
//setStrictChooseMode(true); // TODO: test must be fixed with correct targets
setStopAt(3, PhaseStep.END_TURN);
execute();
@ -69,6 +70,7 @@ public class SigardaHostOfHeronsTest extends CardTestPlayerBase {
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{2}{B}");
//setStrictChooseMode(true); // TODO: test must be fixed with correct targets
setStopAt(1, PhaseStep.END_COMBAT);
execute();
@ -101,7 +103,8 @@ public class SigardaHostOfHeronsTest extends CardTestPlayerBase {
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, "Tempt with Immortality");
setChoice(playerB, "Merciless Executioner");
setChoice(playerA, "Sigarda, Host of Herons");
//setStrictChooseMode(true); // TODO: test must be fixed with correct targets
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
execute();