if(defend) return 1; return UnitAttatchment.get(unit.getType()).getAttackRolls(id);
int count = 0; Iterator iter = units.iterator(); while (iter.hasNext()) { Unit unit = (Unit) iter.next(); count += getRolls(unit, id, defend); } return count;
    public static int getRolls(Unit unit, PlayerID id, boolean defend)    {	if(defend)	    return 1;	return UnitAttatchment.get(unit.getType()).getAttackRolls(id);          }