- Added Game of Chaos

This commit is contained in:
swordshine
2014-04-05 06:39:18 +00:00
parent 96338eb652
commit aabb5888fe
3 changed files with 23 additions and 1 deletions

View File

@@ -123,7 +123,10 @@ public class RepeatEffect extends SpellAbilityEffect {
}
if (sa.hasParam("RepeatOptional")) {
return sa.getActivatingPlayer().getController().confirmAction(sa, null, "Do you want to repeat this process again?");
Player decider = sa.hasParam("RepeatOptionalDecider")
? AbilityUtils.getDefinedPlayers(sa.getHostCard(), sa.getParam("RepeatOptionalDecider"), sa).get(0)
: sa.getActivatingPlayer();
return decider.getController().confirmAction(sa, null, "Do you want to repeat this process again?");
}
return true;