public boolean hasEffect(Class<? extends Ability> effect) {
        for (Ability effect1 : abilities) {
            if (effect1.getClass().equals(effect)) {
                return true;
            }
        }
        return false;
    }