@Override
    public boolean performTest(java.util.Map<String, Object> runParams) {
        Card addedTo = (Card) runParams.get("Card");
        Counters addedType = (Counters) runParams.get("CounterType");

        if (mapParams.containsKey("ValidCard")) {
            if (!addedTo.isValidCard(mapParams.get("ValidCard").split(","), hostCard.getController(), hostCard)) {
                return false;
            }
        }

        if (mapParams.containsKey("CounterType")) {
            String type = mapParams.get("CounterType");
            if (!type.equals(addedType.toString())) {
                return false;
            }
        }

        return true;
    }