public void removeAutos(boolean removeImpossibles){
  ArrayList<TargetRollModifier> toKeep=new ArrayList<TargetRollModifier>();
  for (  TargetRollModifier modifier : modifiers) {
    if (!removeImpossibles) {
      if ((modifier.getValue() != AUTOMATIC_FAIL) && (modifier.getValue() != AUTOMATIC_SUCCESS)) {
        toKeep.add(modifier);
      }
    }
 else     if ((modifier.getValue() != AUTOMATIC_FAIL) && (modifier.getValue() != AUTOMATIC_SUCCESS) && (modifier.getValue() != IMPOSSIBLE)) {
      toKeep.add(modifier);
    }
  }
  modifiers=toKeep;
  recalculate();
}

public void removeAutos ( boolean removeImpossibles ) { ArrayList < TargetRollModifier > toKeep = new ArrayList < TargetRollModifier > ( ) ; for ( TargetRollModifier modifier : modifiers ) { if ( ! removeImpossibles ) { if ( ( modifier . getValue ( ) != AUTOMATIC_FAIL ) && ( modifier . getValue ( ) != AUTOMATIC_SUCCESS ) ) { toKeep . add ( modifier ) ; } } else if ( ( modifier . getValue ( ) != AUTOMATIC_FAIL ) && ( modifier . getValue ( ) != AUTOMATIC_SUCCESS ) && ( modifier . getValue ( ) != IMPOSSIBLE ) ) { toKeep . add ( modifier ) ; } } modifiers = toKeep ; recalculate ( ) ; }
remove all automatic failures or successes , and possibly also remove impossibles
