for (Enumeration e = getEquipment(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement(); if (m.getType().hasFlag(MiscType.F_MASC)) { m.setMode("Off"); } } }
}
    public void newRound() {        super.newRound();        nMASCLevel = Math.max(0, nMASCLevel - 1);                setSecondaryFacing(getFacing());                // resolve ammo dumps         for (Enumeration e = getAmmo(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            if (m.isPendingDump()) {                m.setPendingDump(false);                m.setDumping(true);            }            else if (m.isDumping()) {                m.setDumping(false);                m.setShotsLeft(0);            }        }                // turn off MASC        for (Enumeration e = getEquipment(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            if (m.getType().hasFlag(MiscType.F_MASC)) {                m.setMode("Off");            }        }                    }