if(!assistable || !(entity.canAssist(phase))) {
if(!assistable || !entity.canAssist(phase)) {
    private void setIneligible(int phase) {        Vector assistants = new Vector();        boolean assistable = false;        Entity entity = null;        for (Enumeration e = game.getEntities(); e.hasMoreElements();) {            entity = (Entity)e.nextElement();            if (!entity.isEligibleFor(phase)) {                assistants.addElement(entity);            } else {                assistable=true;            }        }        for (int i=0;i<assistants.size();i++) {            entity = (Entity)assistants.elementAt(i);            if(!assistable || !(entity.canAssist(phase))) {                entity.setDone(true);            }        }    }