From bb31939079173fe5bbb3963f040cce25d997d19e Mon Sep 17 00:00:00 2001 From: "Kyle W. Cartmell" Date: Sat, 29 Apr 2023 20:11:07 -0400 Subject: [PATCH] fixed haktos protection (#10289) --- Mage.Sets/src/mage/cards/h/HaktosTheUnscarred.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/h/HaktosTheUnscarred.java b/Mage.Sets/src/mage/cards/h/HaktosTheUnscarred.java index 9d8380face..e6d3cd25b5 100644 --- a/Mage.Sets/src/mage/cards/h/HaktosTheUnscarred.java +++ b/Mage.Sets/src/mage/cards/h/HaktosTheUnscarred.java @@ -95,7 +95,7 @@ class HaktosTheUnscarredChooseEffect extends OneShotEffect { } int number = 2 + RandomUtil.nextInt(3); game.informPlayers(permanent.getLogName() + ": " + controller.getLogName() + " has chosen " + number + " at random"); - game.getState().setValue(permanent.getId() + "" + (permanent.getZoneChangeCounter(game) + 1) + "_haktos_number", number); + game.getState().setValue(permanent.getId() + "" + source.getSourceObjectZoneChangeCounter() + "_haktos_number", number); permanent.addInfo("chosen number", CardUtil.addToolTipMarkTags("Chosen number: " + number), game); return true; }