if (type instanceof MiscType && type.hasFlag(MiscType.F_ANGEL_ECM)) {
if (type instanceof MiscType && type.hasFlag(MiscType.F_ANGEL_ECM) && m.curMode().equals("ECM")) {
    public boolean hasActiveAngelECM() {        for (Enumeration e = getMisc(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            EquipmentType type = m.getType();            if (type instanceof MiscType && type.hasFlag(MiscType.F_ANGEL_ECM)) {                return !(m.isDestroyed() || m.isMissing() || m.isBreached() || isShutDown());            }        }        return false;    }