private static void debuffAllResolve(AbilityFactory af, SpellAbility sa) {
        HashMap<String, String> params = af.getMapParams();
        Card hostCard = af.getHostCard();
        ArrayList<String> kws = getKeywords(params);
        String valid = "";

        if (params.containsKey("ValidCards"))
            valid = params.get("ValidCards");

        CardList list = AllZoneUtil.getCardsInPlay();
        list = list.getValidCards(valid.split(","), hostCard.getController(), hostCard);

        for (final Card tgtC : list) {
            final ArrayList<String> hadIntrinsic = new ArrayList<String>();
            if (AllZoneUtil.isCardInPlay(tgtC) && CardFactoryUtil.canTarget(hostCard, tgtC)) {
                for (String kw : kws) {
                    if (tgtC.getIntrinsicKeyword().contains(kw)) hadIntrinsic.add(kw);
                    tgtC.removeIntrinsicKeyword(kw);
                    tgtC.removeExtrinsicKeyword(kw);
                }
            }
            if (!params.containsKey("Permanent")) {
                AllZone.getEndOfTurn().addUntil(new Command() {
                    private static final long serialVersionUID = 7486231071095628674L;

                    public void execute() {
                        if (AllZoneUtil.isCardInPlay(tgtC)) {
                            for (String kw : hadIntrinsic) {
                                tgtC.addIntrinsicKeyword(kw);
                            }
                        }
                    }
                });
            }
        }
    }//debuffAllResolve()