private static void changeHiddenOriginResolve(AbilityFactory af, SpellAbility sa) {
        HashMap<String, String> params = af.getMapParams();
        
        ArrayList<Player> fetchers;
        
        fetchers = AbilityFactory.getDefinedPlayers(sa.getSourceCard(), params.get("Defined"), sa);
        
        Player chooser = null;
        if (params.containsKey("Chooser")) {
            String choose = params.get("Chooser");
            if (choose.equals("Targeted") && af.getAbTgt().getTargetPlayers() != null)
                chooser = af.getAbTgt().getTargetPlayers().get(0);
            else
                chooser = AbilityFactory.getDefinedPlayers(sa.getSourceCard(), choose, sa).get(0);
        }

        for (Player player : fetchers) {
            Player decider = chooser;
            if (decider == null)
                decider = player;
            if (decider.isComputer()) {
                changeHiddenOriginResolveAI(af, sa, player);
            } else {
                changeHiddenOriginResolveHuman(af, sa, player);
            }
        }
    }